You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first JSX property should always be placed on a new line if the JSX tag takes up multiple lines and there are multiple properties (react/jsx-first-prop-new-line)
#696
Closed
feross opened this issue
Nov 22, 2016
· 4 comments
multiline-multiprop: The first property should always be placed on a new line if the JSX tag takes up multiple lines and there are multiple properties.
// single-line<Hellopersonal={true}/>// follows single-line, but with object spacing<Hellofoo={{x: 1,
...
}}/>// still single-line with object spacing<Hellobarfoo={{x: 1,
...
}}personal={true}/>// too many props on 1 line, therefore, like an object definition, go multi-line<Hellopersonal={true}foo="bar"/>
feross
changed the title
Configure the position of the first property (jsx-first-prop-new-line)
The first JSX property should always be placed on a new line if the JSX tag takes up multiple lines and there are multiple properties (react/jsx-first-prop-new-line)
Aug 14, 2019
Ensure correct position of the first property.
multiline-multiprop
: The first property should always be placed on a new line if the JSX tag takes up multiple lines and there are multiple properties.https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-first-prop-new-line.md
I've personally run into this while working on WebTorrent Desktop and Brave with @dcposch, where we've been very inconsistent with this.
The text was updated successfully, but these errors were encountered: