@@ -47,6 +47,7 @@ module.exports = {
47
47
'react/no-unescaped-entities' : 0 , // Prevent invalid characters from appearing in markup
48
48
'react/no-unknown-property' : 1 , // Prevent usage of unknown DOM property (fixable)
49
49
'react/no-unused-prop-types' : 1 , // Prevent definitions of unused prop types
50
+ 'react/no-will-update-set-state' : 2 , // Prevent usage of `setState` in `componentWillUpdate`
50
51
'react/prefer-es6-class' : 1 , // Enforce ES5 or ES6 class for React Components
51
52
'react/prefer-stateless-function' : 1 , // Enforce stateless React Components to be written as a pure function
52
53
'react/prop-types' : 0 , // Prevent missing props validation in a React component definition
@@ -78,10 +79,9 @@ module.exports = {
78
79
'react/jsx-no-duplicate-props' : 1 , // Prevent duplicate props in JSX
79
80
'react/jsx-no-literals' : 0 , // Prevent usage of unwrapped JSX strings
80
81
'react/jsx-no-target-blank' : 1 , // Prevent usage of unsafe target='_blank'
81
- 'react/jsx-no-undef' : 1 , // Disallow undeclared variables in JSX
82
+ 'react/jsx-no-undef' : [ 1 , { allowGlobals : true } ] , // Disallow undeclared variables in JSX
82
83
'react/jsx-pascal-case' : 1 , // Enforce PascalCase for user-defined JSX components
83
84
'react/jsx-sort-props' : 0 , // Enforce props alphabetical sorting
84
- 'react/jsx-space-before-closing' : 0 , // Validate spacing before closing bracket in JSX (fixable)
85
85
'react/jsx-tag-spacing' : 1 , // Validate whitespace in and around the JSX opening and closing brackets (fixable)
86
86
'react/jsx-uses-react' : 1 , // Prevent React to be incorrectly marked as unused
87
87
'react/jsx-uses-vars' : 1 , // Prevent variables used in JSX to be incorrectly marked as unused
0 commit comments