-
-
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
Rule for only one jsx react element per line? #1491
Labels
Comments
Would this rule also warn on <A />
<B /> ? |
@ljharb Yes indeed. However, maybe it could be configurable to conditionally support either of the following variants: <A>{whatever()}</A> <A>
{whatever()}
</A> |
Sounds great; want to make a PR? :-D |
@ljharb I would be happy to when I get the chance. Never worked in this codebase before, but I assume |
It's merged. Closing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to disallow multiple elements/components being opened on one line:
and fix to:
I searched all over and could not find something like this. Thank you.
The text was updated successfully, but these errors were encountered: