-
-
Notifications
You must be signed in to change notification settings - Fork 420
expiring-todo-comments: should not flag eslint disable comments
#2828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
expiring-todo-comments: should not flag eslint disable comments
#2828
Conversation
expiring-todo-comments: should not flag eslint disable comments
7690333 to
d0df7af
Compare
| @@ -0,0 +1,47 @@ | |||
| import {ConfigCommentParser} from '@eslint/plugin-kit'; | |||
|
|
|||
| const ESLINT_DISABLE_DIRECTIVES = new Set([ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the link
// https://github.com/eslint/eslint/blob/ecd0ede7fd2ccbb4c0daf0e4732e97ea0f49db1b/lib/linter/linter.js#L509-L512
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
fisker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
@Vladyslav-Soldatenko Turns out there is an |
| context.on('Program', function * () { | ||
| for (const directive of getEslintDisableDirectives(context)) { | ||
| if (directive.value) { | ||
| continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bug, using return instead of continue, introduced by me in #2571
|
Hi. Are there any plans when the fix will be merged? Thanks |
fix for #2745