@@ -47,6 +47,7 @@ module.exports = {
4747 'react/no-unescaped-entities' : 0 , // Prevent invalid characters from appearing in markup
4848 'react/no-unknown-property' : 1 , // Prevent usage of unknown DOM property (fixable)
4949 '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`
5051 'react/prefer-es6-class' : 1 , // Enforce ES5 or ES6 class for React Components
5152 'react/prefer-stateless-function' : 1 , // Enforce stateless React Components to be written as a pure function
5253 'react/prop-types' : 0 , // Prevent missing props validation in a React component definition
@@ -78,10 +79,9 @@ module.exports = {
7879 'react/jsx-no-duplicate-props' : 1 , // Prevent duplicate props in JSX
7980 'react/jsx-no-literals' : 0 , // Prevent usage of unwrapped JSX strings
8081 '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
8283 'react/jsx-pascal-case' : 1 , // Enforce PascalCase for user-defined JSX components
8384 'react/jsx-sort-props' : 0 , // Enforce props alphabetical sorting
84- 'react/jsx-space-before-closing' : 0 , // Validate spacing before closing bracket in JSX (fixable)
8585 'react/jsx-tag-spacing' : 1 , // Validate whitespace in and around the JSX opening and closing brackets (fixable)
8686 'react/jsx-uses-react' : 1 , // Prevent React to be incorrectly marked as unused
8787 'react/jsx-uses-vars' : 1 , // Prevent variables used in JSX to be incorrectly marked as unused
0 commit comments