-
-
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
"jsx-indent" -> "react/jsx-indent" #958
Conversation
There are some things I don't understand in this rule. The rule's description is I would assume that it's a boolean, either 0 or 1, but in every single example
What does that mean? Furthermore, we can see this contradiction:
These patterns are identical and yet one is considered a warning and the other not. |
"enabled" refers to 0/1/2 or off/warn/error, just like every eslint rule in the ecosystem and core is configured. If this change were to be made (adding "react/"), we'd have to do it on all the rules - as this is how they're all currently documented. |
@ljharb Thanks for the clarification regarding Regarding the addition of
and
Lastly, what about the contradiction I mentioned, is there a reason for it or am I misunderstanding something? |
Because tabs vs spaces are very hard to convey in markdown format, all the examples use spaces, but have a comment directly above them describing the intended indentation. |
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.
Thanks!
No description provided.