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
Update: add react plugin config for eslint init #12446
Conversation
This add the recommended config for eslint-plugin-react when using `eslint --init` doc: https://github.com/yannickcr/eslint-plugin-react#configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
altho at this point why wouldn't react users just get the airbnb config
I never heard about it as a react beginner, I ran |
I don't know if this is technically a bug or an enhancement request, but this seems reasonable to me since we do the same sort of thing for Vue (adding |
I called it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
This add the recommended config for eslint-plugin-react when using
eslint --init
doc: https://github.com/yannickcr/eslint-plugin-react#configuration
Without it, eslint detects React components and other stuff as unused vars, while they are used in jsx tags