File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ module.exports = {
46
46
} ,
47
47
} ,
48
48
49
+ settings : {
50
+ react : {
51
+ version : 'detect' ,
52
+ } ,
53
+ } ,
54
+
49
55
rules : {
50
56
// http://eslint.org/docs/rules/
51
57
'array-callback-return' : 'warn' ,
@@ -205,6 +211,7 @@ module.exports = {
205
211
// 'react/no-deprecated': 'warn',
206
212
'react/no-direct-mutation-state' : 'warn' ,
207
213
'react/no-is-mounted' : 'warn' ,
214
+ 'react/no-typos' : 'error' ,
208
215
'react/react-in-jsx-scope' : 'error' ,
209
216
'react/require-render-return' : 'error' ,
210
217
'react/style-prop-object' : 'warn' ,
Original file line number Diff line number Diff line change @@ -314,7 +314,6 @@ module.exports = function(webpackEnv) {
314
314
// @remove -on-eject-begin
315
315
baseConfig : {
316
316
extends : [ require . resolve ( 'eslint-config-react-app' ) ] ,
317
- settings : { react : { version : '999.999.999' } } ,
318
317
} ,
319
318
ignore : false ,
320
319
useEslintrc : false ,
Original file line number Diff line number Diff line change 44
44
"eslint-plugin-flowtype" : " 2.50.1" ,
45
45
"eslint-plugin-import" : " 2.14.0" ,
46
46
"eslint-plugin-jsx-a11y" : " 6.1.2" ,
47
- "eslint-plugin-react" : " 7.11.1 " ,
47
+ "eslint-plugin-react" : " 7.12.3 " ,
48
48
"file-loader" : " 2.0.0" ,
49
49
"fork-ts-checker-webpack-plugin-alt" : " 0.4.14" ,
50
50
"fs-extra" : " 7.0.1" ,
You can’t perform that action at this time.
0 commit comments