jsx-eslint/eslint-plugin-react

Is there a rule for space between props?

Open

#3181 opened on Jan 18, 2022

View on GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (8,630 stars) (2,797 forks)batch import
help wantednew rule

Description

I haven't found any rule that complains about the following:

<Comp a={1}b={2}c={3}/>

And enforces space between props:

<Comp a={1} b={2} c={3}/>

Notice how it shall not affect the space before closing tag.

Is there a rule for it? If not, here it's my suggestion for it.

Contributor guide