Commit 2ed2b59a authored by Ville Immonen's avatar Ville Immonen Committed by Dan Abramov
Browse files

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
parent d2128b62
Showing with 5 additions and 3 deletions
+5 -3
...@@ -189,11 +189,13 @@ module.exports = { ...@@ -189,11 +189,13 @@ module.exports = {
}], }],
'react/jsx-uses-react': 'warn', 'react/jsx-uses-react': 'warn',
'react/jsx-uses-vars': 'warn', 'react/jsx-uses-vars': 'warn',
'react/no-danger-with-children': 'warn',
'react/no-deprecated': 'warn', 'react/no-deprecated': 'warn',
'react/no-direct-mutation-state': 'warn', 'react/no-direct-mutation-state': 'warn',
'react/no-is-mounted': 'warn', 'react/no-is-mounted': 'warn',
'react/react-in-jsx-scope': 'warn', 'react/react-in-jsx-scope': 'warn',
'react/require-render-return': 'warn', 'react/require-render-return': 'warn',
'react/style-prop-object': 'warn',
// https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules // https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules
'jsx-a11y/aria-role': 'warn', 'jsx-a11y/aria-role': 'warn',
......
...@@ -16,6 +16,6 @@ ...@@ -16,6 +16,6 @@
"eslint-plugin-flowtype": "2.18.1", "eslint-plugin-flowtype": "2.18.1",
"eslint-plugin-import": "1.12.0", "eslint-plugin-import": "1.12.0",
"eslint-plugin-jsx-a11y": "2.2.2", "eslint-plugin-jsx-a11y": "2.2.2",
"eslint-plugin-react": "5.2.2" "eslint-plugin-react": "6.3.0"
} }
} }
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"eslint-plugin-flowtype": "2.18.1", "eslint-plugin-flowtype": "2.18.1",
"eslint-plugin-import": "1.12.0", "eslint-plugin-import": "1.12.0",
"eslint-plugin-jsx-a11y": "2.2.2", "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", "extract-text-webpack-plugin": "1.0.1",
"file-loader": "0.9.0", "file-loader": "0.9.0",
"filesize": "3.3.0", "filesize": "3.3.0",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment