jsx-eslint/eslint-plugin-react

Is there a rule for space between props?

Open

#3 181 ouverte le 18 janv. 2022

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)JavaScript (2 797 forks)batch import
help wantednew rule

Métriques du dépôt

Stars
 (8 630 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur