💼 This rule is enabled in the following configs: all
.
🔧 This rule is automatically fixable using the --fix
flag on the command line.
Enforces that there is exactly one space between all attributes and after tag name and the first attribute in the same line.
Examples of incorrect code for this rule:
<App spacy />
<App too spacy />
<App
prop1='abc'
prop2='def' />
Examples of correct code for this rule:
<App cozy />
<App very cozy />
<App
prop1='abc'
prop2='def' />
If you are not using JSX or don't care about the space between two props in the same line.
If you have enabled the core rule no-multi-spaces
with eslint >= 3, you don't need this rule.