paleite / eslint-plugin-diff

Run ESLint on your changes only
https://npm.im/eslint-plugin-diff
MIT License
172 stars 13 forks source link

Always run messages that have fixes #30

Open mattlewis92 opened 2 years ago

mattlewis92 commented 2 years ago

Hi there,

Firstly, thanks for this great plugin, it's a huge help to incrementally enabling new lint rules on our code base 🥳

There's one issue we ran into where on our pre commit hook we use this plugin to auto sort imports, however because the fixer affects lines of code that weren't actually changed the fixer never runs and our imports are no longer auto sorted.

The easiest way I could see to fix this is to always run rules that have auto fixes. I think it makes sense to always do this but maybe it should be an option or something? Happy to discuss this more!