You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file should be fixed: hey should be added to the list of the useEffect() dependencies. Also I believe the output of the command should be silent.
Actual behavior
The file did not get fixed. Also I get this non-silent output:
attila-Predator :: 0/quick/react-app-typescript-2021 ‹master› % eslint --fix -- src/App.tsx
/home/attila/0/quick/react-app-typescript-2021/src/App.tsx
9:6 warning React Hook useEffect has a missing dependency: 'hey'. Either include it or remove the dependency array react-hooks/exhaustive-deps
✖ 1 problem (0 errors, 1 warning)
Describe the bug
Running
eslint --fix <filename>
does not automatically fix the problems on a fresh CRA v4.0.3 app.(Also in PhpStorm/WebStorm, the option for
Run eslint --fix on save.
does not work, unlike with CRA v3. This is perhaps related.)Did you try recovering your dependencies?
The app is fresh.
Which terms did you search for in User Guide?
Eslint
Environment
(paste the output of the command here.)
Steps to reproduce
yarn
to install the dependencies.eslint --fix -- src/App.tsx
Expected behavior
The file should be fixed:
hey
should be added to the list of theuseEffect()
dependencies. Also I believe the output of the command should be silent.Actual behavior
The file did not get fixed. Also I get this non-silent output:
Reproducible demo
https://github.com/amcsi/react-app-eslint-fix-not-working-example
The text was updated successfully, but these errors were encountered: