Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't fix code with latest version of eslint #195

Open
binary64 opened this issue Aug 28, 2021 · 3 comments
Open

Can't fix code with latest version of eslint #195

binary64 opened this issue Aug 28, 2021 · 3 comments

Comments

@binary64
Copy link

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.

@freaktechnik
Copy link
Owner

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

@binary64
Copy link
Author

binary64 commented Sep 2, 2021

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

@freaktechnik
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants