eslint-plugin-diff icon indicating copy to clipboard operation
eslint-plugin-diff copied to clipboard

Always run messages that have fixes

Open mattlewis92 opened this issue 3 years ago • 0 comments

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!

mattlewis92 avatar Aug 16 '22 12:08 mattlewis92