File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 14
14
module . exports = {
15
15
root : true ,
16
16
17
- parser : 'babel- eslint' ,
17
+ parser : '@ babel/ eslint-parser ' ,
18
18
19
19
plugins : [ 'react' ] ,
20
20
@@ -29,8 +29,11 @@ module.exports = {
29
29
parserOptions : {
30
30
ecmaVersion : 2018 ,
31
31
sourceType : 'module' ,
32
- ecmaFeatures : {
33
- jsx : true ,
32
+ requireConfigFile : false ,
33
+ babelOptions : {
34
+ parserOpts : {
35
+ plugins : [ 'jsx' ] ,
36
+ } ,
34
37
} ,
35
38
} ,
36
39
Original file line number Diff line number Diff line change 17
17
" jest.js"
18
18
],
19
19
"peerDependencies" : {
20
+ "@babel/eslint-parser" : " ^7.13.0" ,
20
21
"@typescript-eslint/eslint-plugin" : " ^4.0.0" ,
21
22
"@typescript-eslint/parser" : " ^4.0.0" ,
22
- "babel-eslint" : " ^10.0.0" ,
23
23
"eslint" : " ^7.5.0" ,
24
24
"eslint-plugin-flowtype" : " ^5.2.0" ,
25
25
"eslint-plugin-import" : " ^2.22.0" ,
Original file line number Diff line number Diff line change 29
29
"types" : " ./lib/react-app.d.ts" ,
30
30
"dependencies" : {
31
31
"@babel/core" : " 7.12.3" ,
32
+ "@babel/eslint-parser" : " ^7.13.14" ,
32
33
"@pmmmwh/react-refresh-webpack-plugin" : " 0.4.3" ,
33
34
"@svgr/webpack" : " 5.5.0" ,
34
35
"@typescript-eslint/eslint-plugin" : " ^4.5.0" ,
35
36
"@typescript-eslint/parser" : " ^4.5.0" ,
36
- "babel-eslint" : " ^10.1.0" ,
37
37
"babel-jest" : " ^26.6.0" ,
38
38
"babel-loader" : " 8.1.0" ,
39
39
"babel-plugin-named-asset-import" : " ^0.3.7" ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function verifyPackageTree() {
21
21
// These are packages most likely to break in practice.
22
22
// See https://github.com/facebook/create-react-app/issues/1795 for reasons why.
23
23
// I have not included Babel here because plugins typically don't import Babel (so it's not affected).
24
- 'babel- eslint' ,
24
+ '@ babel/ eslint-parser ' ,
25
25
'babel-jest' ,
26
26
'babel-loader' ,
27
27
'eslint' ,
You can’t perform that action at this time.
0 commit comments