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
I know this is an old thread but in 2021 I had this issue, too; eslint should have errored for us but instead passed eslint and allowed commit. This also meant CI/CD also passed. We used the same configuration in the README.
Manually running yarn eslint ... on the problem file output (instead of through lint-staged on pre-commit) output warnings which allowed linting to pass.
After changing the config rule to error (or, as I recently discovered 2 = error, 1 = warn) , eslint now fails as expected and now fails both pre-commit and CI/CD linting:
When following the README to add the package:
Add to plugins section:
Add rule to rules section, e.g.
When running
eslint
the tsc does not catch any errors.However, if I remove this configuration and pass it inline with the command it works:
Here is my eslint config:
The text was updated successfully, but these errors were encountered: