eslint-plugin-array-func icon indicating copy to clipboard operation
eslint-plugin-array-func copied to clipboard

Can't fix code with latest version of eslint

Open binary64 opened this issue 2 years ago • 3 comments

with latest version of eslint plus your plugin, I can't fix code. If I do a yarn eslint --fix file.ts it shows me errors and even suggests to me to use --fix -- but no fixes come through. Once I remove plugin:array-func/all, it all works again.

I think eslint might have flag you need to set as author, to specify you support fixing.

binary64 avatar Aug 28 '21 11:08 binary64

What rule isn't getting fixed automatically? array-func/no-unnecessary-this-arg can't be auto fixed in all cases, for example.

freaktechnik avatar Aug 29 '21 14:08 freaktechnik

All my other rules cannot be fixed, it blocks the whole eslint --fix system for me.

binary64 avatar Sep 02 '21 12:09 binary64

Okay, then my assumption would be that a fixer from this plugin is failing. Could you provide what rules are hitting issues on your code? If you want to really help, try adding the rules to your config individually to find out which one breaks it and if possible a minimal generic version of the code that is tripping it (if you have multiple hits you could reduce that by checking individual files with eslint, so there's less hits). Thanks!

freaktechnik avatar Sep 02 '21 12:09 freaktechnik