Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 538 Bytes

jsx-props-no-multi-spaces.md

File metadata and controls

29 lines (19 loc) · 538 Bytes

Disallow multiple spaces between inline JSX props

Enforces that there is exactly one space between two JSX attributes or the JSX tag name and the first JSX attribute in the same 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.