palantir / tslint-react

:orange_book: Lint rules related to React & JSX for TSLint.
Apache License 2.0
749 stars 76 forks source link

New rule: Wrap expressions in a line #66

Closed mohsen1 closed 5 years ago

mohsen1 commented 7 years ago

Not sure how to name or describe this rule.

Bad

<div>{
  expression
}</div>

Good

<div>
  {expression}
</div>
adidahiya commented 7 years ago

maybe this could be a new option in jsx-curly-spacing? or a new rule called jsx-one-line

adidahiya commented 5 years ago

Closing due to old age and the deprecation timeline in #210