Skip to content

Commit da31493

Browse files
Update lint parser (#2967)
* Update .eslintrc.json * Update package.json
1 parent ab5de88 commit da31493

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

webapp/.eslintrc.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@
55
"mocha": true
66
},
77
"extends": "eslint:recommended",
8-
"parser": "babel-eslint",
8+
"parser": "@babel/eslint-parser",
99
"parserOptions": {
10-
"sourceType": "module"
10+
"sourceType": "module",
11+
"requireConfigFile": false,
12+
"babelOptions": {
13+
"plugins": [
14+
"@babel/plugin-syntax-import-assertions"
15+
]
16+
}
1117
},
1218
"globals": {
1319
"assert": true,

webapp/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
"wct": "wct"
4444
},
4545
"dependencies": {
46+
"@babel/eslint-parser": "^7.19.1",
47+
"@babel/plugin-syntax-import-assertions": "^7.18.6",
4648
"@google-web-components/google-chart": "3.1.1",
4749
"@polymer/app-route": "3.0.2",
4850
"@polymer/iron-collapse": "3.0.1",

0 commit comments

Comments
 (0)