Align the attributes of multi-line JSX elements.
- ⭐️ This rule is included in
plugin:spiff/recommended
preset.- ✒️ The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
Correct:
<MultiLine
key = "key"
banana = {<Inner i="i" />}
/>
<MultiLine
key = "key"
count = {42}
/>
<MultiLine
id = {id}
banana = {<Inner i="i" />}
/>
Incorrect:
<MultiLine
key="key"
banana={<Inner i="i" />}
/>
<MultiLine
key ="key"
count={42}
/>
<MultiLine
id = {id}
banana = {<Inner i="i" />}
/>