-
-
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
"react/jsx-wrap-multilines": "never" option #1035
Comments
@webdeb Would "never" mean that you can't ever have multiline jsx? |
"never" would mean, never wrap jsx in parentheses. |
Gotcha, that makes sense and seems reasonable (although I personally find "never wrap" repulsive). We'd need to change the schema so it accepted an optional string "always"|"never" before the object, and when the string was omitted (with or without the object), "always" was assumed. |
Don't know if it's helpful but see (converse) discussion in Standard for more examples: standard/standard#710 |
What does the explicit syntax mean ? |
Hi, it would be cool, to have that option available.
I am working currently in a team, where the members decided to use that explicit syntax:
I tried
no-extra-parens
but it did't worked for return statements. So I am here ;)Would be nice to have the never option like:
"react/jsx-wrap-multilines": ["error", "never"]
The text was updated successfully, but these errors were encountered: