AtomLinter / linter-eslint

ESLint plugin for Atom Linter

Home Page:https://atom.io/packages/linter-eslint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-hooks/exhaustive-deps fix button

lambert-velir opened this issue · comments

Issue Type

Bug/Feature Request

Issue Description

It seems that facebook disabled autofix for the react-hooks/exhaustive-deps rule. When I see this linter error, I see the error message, but I do not see a "fix" button, like I do for other linter errors:

Screen Shot 2020-06-04 at 4 27 59 PM

Other rules do have a "fix" button:
Screen Shot 2020-06-04 at 4 29 09 PM

Is this something that needs to be added to linter-eslint? The facebook issue mentions the ESLint Suggestions API, so maybe this packages needs to be updated to use that?

The rule needs to be fixable in order to see the fix button

Hi @UziTech, this is a fixable rule in VS Code and it used to work in Atom. As I mentioned above, I think it's because the ESLint Suggestions API has changed. Can we update this package to support the react-hooks/exhaustive-deps fix button?