-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Create "eslint-plugin-react:recommended" for use with eslint's new "extends" property. #192
Comments
👍 |
Good idea 👍 |
Digging through the eslint source code, I found this line where it seems to resolve that alias. It looks like right now, that functionality is hardcoded to that one name, with no obvious way of adding your own aliases. I'm guessing in v1, use of this feature would look something like:
And then conf/recommended.json would be something like:
... or whatever is decided to be the "recommended" rules to use. |
A recently added feature of eslint is extends. It would be useful if eslint-plugin-react created their own preset so that one could do this:
This would eliminate the need to add all the react rules explicitly.
The text was updated successfully, but these errors were encountered: