Bump eslint-plugin-react version and update webpack config (#6132)

* Bump eslint-plugin-react version

* Move eslint-plugin-react settings into eslint-config-react-app

* Add react/no-typos rule
This commit is contained in:
Ian Schmitz
2019-01-06 15:05:14 -08:00
committed by GitHub
parent 3e1dc99013
commit 005ee5b952
3 changed files with 8 additions and 2 deletions

View File

@@ -46,6 +46,12 @@ module.exports = {
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
// http://eslint.org/docs/rules/
'array-callback-return': 'warn',
@@ -205,6 +211,7 @@ module.exports = {
// 'react/no-deprecated': 'warn',
'react/no-direct-mutation-state': 'warn',
'react/no-is-mounted': 'warn',
'react/no-typos': 'error',
'react/react-in-jsx-scope': 'error',
'react/require-render-return': 'error',
'react/style-prop-object': 'warn',

View File

@@ -314,7 +314,6 @@ module.exports = function(webpackEnv) {
// @remove-on-eject-begin
baseConfig: {
extends: [require.resolve('eslint-config-react-app')],
settings: { react: { version: '999.999.999' } },
},
ignore: false,
useEslintrc: false,

View File

@@ -44,7 +44,7 @@
"eslint-plugin-flowtype": "2.50.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-react": "7.11.1",
"eslint-plugin-react": "7.12.3",
"file-loader": "2.0.0",
"fork-ts-checker-webpack-plugin-alt": "0.4.14",
"fs-extra": "7.0.1",