Use babel with import assertions
This commit is contained in:
parent
1c23090cd1
commit
d8c5ffa1d9
3 changed files with 1314 additions and 1 deletions
|
@ -4,9 +4,16 @@
|
||||||
"node": true,
|
"node": true,
|
||||||
"es6": true
|
"es6": true
|
||||||
},
|
},
|
||||||
|
"parser": "@babel/eslint-parser",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2022,
|
"ecmaVersion": 2022,
|
||||||
"sourceType": "module"
|
"sourceType": "module",
|
||||||
|
"requireConfigFile": false,
|
||||||
|
"babelOptions": {
|
||||||
|
"plugins": [
|
||||||
|
"@babel/plugin-syntax-import-assertions"
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"arrow-spacing": ["warn", { "before": true, "after": true }],
|
"arrow-spacing": ["warn", { "before": true, "after": true }],
|
||||||
|
|
1304
package-lock.json
generated
1304
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -29,6 +29,8 @@
|
||||||
"twit": "^2.2.11"
|
"twit": "^2.2.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@babel/eslint-parser": "^7.18.9",
|
||||||
|
"@babel/plugin-syntax-import-assertions": "^7.18.6",
|
||||||
"@types/node": "^18.7.3",
|
"@types/node": "^18.7.3",
|
||||||
"eslint": "^8.16.0",
|
"eslint": "^8.16.0",
|
||||||
"sequelize-cli": "^6.4.1"
|
"sequelize-cli": "^6.4.1"
|
||||||
|
|
Loading…
Reference in a new issue