Open nemoDreamer opened 4 years ago
great thanks, this hack saves my day!
You just saved me hours of frustration, thanks!
Thanks to @kaelzhang for the original discovery!
Hi @nemoDreamer!
Since this repo is unmaintained, you might want to re-open this issue in the @eslint-community fork https://github.com/eslint-community/eslint-plugin-eslint-comments
For more info about why we created this organization, you can read https://eslint.org/blog/2023/03/announcing-eslint-community-org
Hi, I was following the examples for https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html and noticed that the underlying
ignore
package handles un-ignores after'*'
strangely.When you lock down disabling of all rules with
'*'
, you can't allowscope/rule
-type rules later, unless you explicitly allow'*/'
.I finally found my answer in the fixtures of https://github.com/kaelzhang/node-ignore 😆
Here's a snippet to recreate: