You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noting this mostly for visibility for future travelers. Not clear if there is even a fix (other than a patch-package).
Another note: This is related to #394, but is not fixable by pinning to [email protected].
eslint --quiet mode prevents eslint from producing a 0 exit code when eslint-formatter-todo is used and all lint errors are marked as todos.
This is due to an issue in eslint itself, originally noted here #394 (comment)
When the --quiet flag is present eslint filters out non-error results before passing the results into the formater, which means eslint-formatter-todo never even sees the errors to mutate them into todos, but when eslint later calculates the error code it does so based on the original unfiltered results.
Noting this mostly for visibility for future travelers. Not clear if there is even a fix (other than a patch-package).
Another note: This is related to #394, but is not fixable by pinning to
[email protected]
.eslint
--quiet
mode prevents eslint from producing a 0 exit code wheneslint-formatter-todo
is used and all lint errors are marked as todos.This is due to an issue in eslint itself, originally noted here #394 (comment)
When the --quiet flag is present eslint filters out non-error results before passing the results into the formater, which means eslint-formatter-todo never even sees the errors to mutate them into todos, but when eslint later calculates the error code it does so based on the original unfiltered results.
https://github.com/eslint/eslint/blob/740b20826fadc5322ea5547c1ba41793944e571d/lib/cli.js#L427-L443
Since this is an issue in
eslint
itself, and changing this ineslint
is probably not feasible, I am noting a potential fix viapatch-package
here:The text was updated successfully, but these errors were encountered: