Skip to content

Commit c503ce6

Browse files
author
madani
committed
replaced the depreciated babel-eslint with @babel/eslint-parser and added import assertions
1 parent af4c2cf commit c503ce6

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@
3636
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
3737
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
3838
"@babel/plugin-transform-runtime": "^7.17.0",
39+
"@babel/plugin-syntax-import-assertions": "^7.18.6",
3940
"@babel/preset-env": "^7.16.11",
4041
"@babel/runtime": "^7.17.2",
4142
"@typescript-eslint/eslint-plugin": "^4.33.0",
4243
"@typescript-eslint/parser": "^4.33.0",
43-
"babel-eslint": "^10.0.2",
44+
"@babel/eslint-parser": "^7.8.2",
4445
"babel-jest": "^26.6.3",
4546
"babel-loader": "^8.2.3",
4647
"babel-plugin-source-map-support": "^2.1.3",

src/eslintrc.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
"env": {
33
"es6": true
44
},
5-
"parser": "babel-eslint",
5+
"parser": "@babel/eslint-parser",
66
"parserOptions": {
7-
"ecmaVersion": 2017,
8-
"sourceType": "module"
7+
"requireConfigFile": false,
8+
"sourceType": "module",
9+
"babelOptions": {
10+
"plugins": [
11+
"@babel/plugin-syntax-import-assertions"
12+
]
13+
}
914
},
1015
"extends": "strongloop",
1116
"rules": {

src/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ function statModeToOctal(mode) {
125125

126126
function babelLoader() {
127127
const plugins = [
128+
"@babel/plugin-syntax-import-assertions",
128129
"@babel/plugin-transform-runtime",
129130
"@babel/plugin-proposal-class-properties",
130131
"@babel/plugin-proposal-optional-chaining",

0 commit comments

Comments
 (0)