Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (20 sloc) 656 Bytes

Disallow multiple spaces between inline JSX props (react/jsx-props-no-multi-spaces)

Enforces that there is exactly one space between all attributes and after tag name and the first attribute in the same line.

Fixable: This rule is automatically fixable using the --fix flag on the command line.

Rule Details

The following patterns are considered warnings:

<App  spacy />
<App too  spacy />

The following patterns are not considered warnings:

<App cozy />
<App very cozy />

When Not To Use It

If you are not using JSX or don't care about the space between two props in the same line.

You can’t perform that action at this time.