-
Notifications
You must be signed in to change notification settings - Fork 3
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
React (CRA) broken with eslint 5.x
(manual work-around available)
#3
Comments
React (from CRA) works with eslint v6 (which solves this issue - upgrade eslint to v6 in your react app and see #4),but then - standalone files from the global
|
5.x
5.x
(manual work-around available)
Update: I've just tried setting up CRA again, and everything worked fine with eslint Will update this soon. Edit: Nevermind, Keeping this solution as is until we find something better. |
Issue originally reported by @okovalov 馃敟
I will:
attempt upgrading eslint to
6.x
.Previously I've had numerous issues with the v6; it's time to try again.
upgrade eslint to
6.x
in this configtake care of related dependencies to match the upgraded version of eslint.
Edit:
Manual work-around: #3 (comment):
eslint
to6.x
in your react app manually, and--ext js,jsx,ts,tsx
every time you calleslint
, since v6 seems to require it -- see Upgrading to eslint v6 requires--ext js,jsx,ts,tsx
to lint anything other than js聽#4See also https://github.com/sarpik/eslint-config-sarpik#with-create-react-app
The text was updated successfully, but these errors were encountered: