Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个react代码库,我想用以下规则美化它:
react
shorthand => shorthand={true}
当前的:
<Table celled unstackable />
预期的:
<Table celled={true} unstackable={true} />
这是一个eslint 规则
只需将其添加到您的eslintrc rules即可禁用它;
eslintrc
rules
react/jsx-boolean-value: off