|
@@ -7,6 +7,7 @@ module.exports = {
|
|
|
},
|
|
|
|
|
|
"globals": {
|
|
|
+ "$": true,
|
|
|
"jQuery": true,
|
|
|
"React": true,
|
|
|
"ReactDOM": true
|
|
@@ -239,8 +240,8 @@ module.exports = {
|
|
|
"react/jsx-sort-props": 0, // Enforce props alphabetical sorting
|
|
|
"react/jsx-uses-react": 2, // Prevent React to be incorrectly marked as unused
|
|
|
"react/jsx-uses-vars": 2, // Prevent variables used in JSX to be incorrectly marked as unused
|
|
|
- "react/no-did-mount-set-state": 2, // Prevent usage of setState in componentDidMount
|
|
|
- "react/no-did-update-set-state": 2, // Prevent usage of setState in componentDidUpdate
|
|
|
+ "react/no-did-mount-set-state": 1, // Prevent usage of setState in componentDidMount
|
|
|
+ "react/no-did-update-set-state": 1, // Prevent usage of setState in componentDidUpdate
|
|
|
"react/no-multi-comp": 0, // Prevent multiple component definition per file
|
|
|
"react/no-unknown-property": 2, // Prevent usage of unknown DOM property
|
|
|
"react/prop-types": 2, // Prevent missing props validation in a React component definition
|