-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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
react/jsx-quotes is deprecated. Use jsx-quotes instead #513
Comments
👍 |
👍 We're getting these errors when linting as well. |
Just a heads up, to get rid of these errors override the react/jsx-quotes rule in your eslintrc file with 0. Then you can specify jsx-quotes rule. You can also just not specify the extra rule to avoid causing issues in 3P packages that may have not updated eslint (gulp-eslint seems to fail)
|
We were actually running into it on a code base that doesn't use react at all, so we just did: {
"extends": "airbnb/base"
} which doesn't load the react linting modules. |
And there already are PRs for upgrading |
@nackjicholson thanks for the tip, I'm not using react either but my lint tests started failing because of that deprecation error. |
Just a ping. What's going on with these issues #513 #514 #518 These are all aimed at fixing this issue with jsx-quotes deprecation. But I've noticed another issue. I'm using both the airbnb presets for JSCS and ESLint, and they disagree on this point about whether to use a single quote or double quote in jsx. airbnb JSCS says it wants singles: |
I can fix it by doing this in my jscsConfig:
Maybe that should just be turned on by default in the airbnb preset for JSCS. |
@nackjicholson JSX should be using double quotes, everything else, single quotes - a PR is very welcome to fix that. Similarly, a separate PR to use |
Airbnb JSCS preset updated here: jscs-dev/node-jscs#2007 (comment) |
This is fixed in #521. |
React/jsx-quotes has been deprecated in latest version of eslint.
The text was updated successfully, but these errors were encountered: