jsx-eslint/eslint-plugin-react

Is there a rule for space between props?

Open

#3,181 创建于 2022年1月18日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)JavaScript (8,630 star) (2,797 fork)batch import
help wantednew rule

描述

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.

贡献者指南