Skip to content

Commit 3bae2e7

Browse files
修复eslint检测() => import报错的问题
1 parent 6d225a9 commit 3bae2e7

File tree

4 files changed

+3
-21
lines changed

4 files changed

+3
-21
lines changed

.babelrc

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"presets": [
33
"@vue/app"
4-
],
5-
"plugins": [
6-
"@babel/plugin-syntax-dynamic-import"
74
]
85
}

.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ module.exports = {
1111
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
1212
'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
1313
'no-undef': 'off'
14+
},
15+
parserOptions: {
16+
parser: 'babel-eslint'
1417
}
1518
}

package-lock.json

-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"xlsx": "^0.13.3"
3434
},
3535
"devDependencies": {
36-
"@babel/plugin-syntax-dynamic-import": "^7.0.0-rc.1",
3736
"@vue/cli-plugin-babel": "^3.0.1",
3837
"@vue/cli-plugin-eslint": "^3.0.1",
3938
"@vue/cli-plugin-unit-mocha": "^3.0.1",

0 commit comments

Comments
 (0)