eslint ./some-file.js
triggers invalid-todo-violation-rule
for unrelated files
#218
Labels
bug
Something isn't working
When linting only a subset of files by explicitly passing them to
eslint
(instead of justeslint .
), all TODOs from all other files are incorrectly reported as passing /invalid-todo-violation-rule
.Steps to reproduce:
eslint
config and some files failing that config.(Optionally verify, that violations are present with:
eslint .
)UPDATE_TODO=1 eslint --format @scalvert/eslint-formatter-todo .
eslint --format @scalvert/eslint-formatter-todo .
eslint --format @scalvert/eslint-formatter-todo ./some-file.js
Actual Behavior
All TODOs for files other than
some-file.js
are incorrectly reported as fixed (invalid-todo-violation-rule
).Expected Behavior
Only TODOs for files matching the input glob / files list passed to
eslint
should be checked.The text was updated successfully, but these errors were encountered: