Skip to content

Commit 9a15bf3

Browse files
add @babel/eslint-parser
1 parent aef6e96 commit 9a15bf3

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.eslintrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@
22
"env": {
33
"browser": true,
44
"es2021": true,
5+
"es6": true,
56
"node": true,
67
"jest": true
78
},
89
"extends": ["eslint:recommended", "plugin:react/recommended"],
10+
"settings": {
11+
"react": {
12+
"version": "detect"
13+
}
14+
},
15+
"parser": "@babel/eslint-parser",
916
"parserOptions": {
1017
"ecmaFeatures": {
1118
"jsx": true
1219
},
1320
"ecmaVersion": 12,
14-
"sourceType": "module"
21+
"sourceType": "module",
22+
"allowImportExportEverywhere": false
1523
},
1624
"plugins": ["react"],
1725
"rules": {}

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"devDependencies": {
3838
"@babel/cli": "^7.13.14",
3939
"@babel/core": "^7.11.4",
40+
"@babel/eslint-parser": "^7.14.4",
4041
"@babel/plugin-transform-react-jsx": "^7.10.4",
4142
"@babel/plugin-transform-react-jsx-self": "^7.10.4",
4243
"@babel/plugin-transform-runtime": "^7.13.10",

0 commit comments

Comments
 (0)