Skip to content

Commit 4f42a62

Browse files
committed
feat(eslint-plugin-react): enable react/jsx-props-no-multi-spaces as a warning
1 parent 8e21b43 commit 4f42a62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/react.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ module.exports = {
8585
{ props: "never", children: "never" }
8686
],
8787
"react/jsx-pascal-case": ["warn", { allowAllCaps: true }],
88+
"react/jsx-props-no-multi-spaces": "warn",
8889
"react/jsx-tag-spacing": [
8990
"warn",
9091
{
@@ -112,16 +113,19 @@ module.exports = {
112113
// react/no-set-state
113114
// react/no-unused-prop-types doesn't track destructuring and assignment props so we are disable this.
114115
// react/no-unused-prop-types
116+
// react/no-unsafe
115117
// react/require-default-props
116118
// react/require-optimization
117119
// react/sort-prop-type
120+
// react/state-in-constructor
118121

119122
// react/jsx-child-element-spacing
120123
// react/jsx-handler-names
121124
// react/jsx-max-depth
122125
// react/jsx-no-comment-textnodes
123126
// react/jsx-no-literals
124127
// react/jsx-one-expression-per-line
128+
// react/jsx-props-no-spreading
125129
// react/jsx-sort-default-props
126130
// react/jsx-sort-props
127131
// react/jsx-space-before-closing deprecated

0 commit comments

Comments
 (0)