jsx-eslint/eslint-plugin-react

Is there a rule for space between props?

Open

#3181 aperta il 18 gen 2022

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (2797 fork)batch import
help wantednew rule

Metriche repository

Star
 (8630 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor