-
Notifications
You must be signed in to change notification settings - Fork 76
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-max-props-per-line #166
Comments
Yeah a feature like this would be great |
Is this possible? |
@andy9775 The If |
Very much want this. Keeps everyone on the team writing in a consistent readable style. |
I would just add this functionality to the jsx-alignment rule instead of creating a new rule. But this is low priority due to palantir/tslint#4534 Have you all tried prettier for JSX formatting? |
@ryanburr as you mentioned to use |
@sevenLee I don't think it should replace the entire Per @adidahiya suggestion, rather than creating new rules for Take all of this with a grain of salt though as @adidahiya also pointed out, TSLint will be deprecated sometime this year, so it might make sense to start to transition to ESLint or Prettier for jsx formatting. |
Closing due to the deprecation timeline and maintenance burden of formatting rules, see #210 |
Hey All, new to typescript and JS has this jsx rule for formatting the structure of JSX props.
I would like this:
to look like:
with the closing tag and opening prop optionally on a new line.
I think it would work with
jsx-alignment
for aligning the props.Is there any possibility to get something like this setup already? Note that if I have multiple props, or long props, that softwrap it results in the first formatting above. However I'd like to define the maximum number of props on a line before it wraps (1 in the above examples).
The text was updated successfully, but these errors were encountered: