eslint-plugin-array-func
eslint-plugin-array-func copied to clipboard
Can't fix code with latest version of eslint
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.
What rule isn't getting fixed automatically? array-func/no-unnecessary-this-arg
can't be auto fixed in all cases, for example.
All my other rules cannot be fixed, it blocks the whole eslint --fix system for me.
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!