mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Update eslint-plugin-react and enable new rules (#696)
* Update eslint-plugin-react and enable new rules New rules: * `react/no-danger-with-children` (yannickcr/eslint-plugin-react#710) * `react/no-find-dom-node` (yannickcr/eslint-plugin-react#678) * `react/style-prop-object` (yannickcr/eslint-plugin-react#715) * Remove react/no-find-dom-node for now
This commit is contained in:
committed by
Dan Abramov
parent
d2128b62f0
commit
2ed2b59a69
@@ -16,7 +16,7 @@
|
||||
"eslint-plugin-flowtype": "2.18.1",
|
||||
"eslint-plugin-import": "1.12.0",
|
||||
"eslint-plugin-jsx-a11y": "2.2.2",
|
||||
"eslint-plugin-react": "5.2.2",
|
||||
"eslint-plugin-react": "6.3.0",
|
||||
"lerna": "2.0.0-beta.28"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,11 +189,13 @@ module.exports = {
|
||||
}],
|
||||
'react/jsx-uses-react': 'warn',
|
||||
'react/jsx-uses-vars': 'warn',
|
||||
'react/no-danger-with-children': 'warn',
|
||||
'react/no-deprecated': 'warn',
|
||||
'react/no-direct-mutation-state': 'warn',
|
||||
'react/no-is-mounted': 'warn',
|
||||
'react/react-in-jsx-scope': 'warn',
|
||||
'react/require-render-return': 'warn',
|
||||
'react/style-prop-object': 'warn',
|
||||
|
||||
// https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules
|
||||
'jsx-a11y/aria-role': 'warn',
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
"eslint-plugin-flowtype": "2.18.1",
|
||||
"eslint-plugin-import": "1.12.0",
|
||||
"eslint-plugin-jsx-a11y": "2.2.2",
|
||||
"eslint-plugin-react": "5.2.2"
|
||||
"eslint-plugin-react": "6.3.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
"eslint-plugin-flowtype": "2.18.1",
|
||||
"eslint-plugin-import": "1.12.0",
|
||||
"eslint-plugin-jsx-a11y": "2.2.2",
|
||||
"eslint-plugin-react": "5.2.2",
|
||||
"eslint-plugin-react": "6.3.0",
|
||||
"extract-text-webpack-plugin": "1.0.1",
|
||||
"file-loader": "0.9.0",
|
||||
"filesize": "3.3.0",
|
||||
|
||||
Reference in New Issue
Block a user