mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-08-28 22:40:13 -04:00
feat(react): allow deprecated react methods and update eslint dep
BREAKING CHANGE: The change to the camelcase rule requires ESLint 5.7.0 so that's now the minimum specified in peerDependencies.
This commit is contained in:
parent
3f8fdd6b8e
commit
87096be0ec
2 changed files with 5 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
},
|
||||
"peerDependencies": {
|
||||
"babel-eslint": ">=8.0.1",
|
||||
"eslint": ">=5.3.0"
|
||||
"eslint": ">=5.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "10.0.3",
|
||||
|
|
5
react.js
vendored
5
react.js
vendored
|
@ -55,7 +55,10 @@ module.exports = {
|
|||
'react/jsx-tag-spacing': [2],
|
||||
'react/jsx-uses-react': [2],
|
||||
'react/jsx-uses-vars': [2],
|
||||
'react/jsx-wrap-multilines': [2]
|
||||
'react/jsx-wrap-multilines': [2],
|
||||
|
||||
// Allow deprecated lifecycle methods
|
||||
'camelcase': [2, {allow: ['^UNSAFE_']}]
|
||||
},
|
||||
plugins: ['react'],
|
||||
extends: ['plugin:react/recommended']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue