修复eslint检测() => import报错的问题
This commit is contained in:
parent
6d225a9118
commit
3bae2e7207
3
.babelrc
3
.babelrc
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"presets": [
|
"presets": [
|
||||||
"@vue/app"
|
"@vue/app"
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"@babel/plugin-syntax-dynamic-import"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,8 @@ module.exports = {
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
|
'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
|
||||||
'no-undef': 'off'
|
'no-undef': 'off'
|
||||||
|
},
|
||||||
|
parserOptions: {
|
||||||
|
parser: 'babel-eslint'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -356,23 +356,6 @@
|
||||||
"@babel/helper-plugin-utils": "7.0.0-beta.47"
|
"@babel/helper-plugin-utils": "7.0.0-beta.47"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/plugin-syntax-dynamic-import": {
|
|
||||||
"version": "7.0.0-rc.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.0.0-rc.2.tgz",
|
|
||||||
"integrity": "sha512-4Pnwwv4s9EhdZrYHP/dMEbr/TR7bqGsINofRavYBHv1lVSwvajhB0Z6+YAmOZabQZieCfH0Kfg1oJLa3sYsfpQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@babel/helper-plugin-utils": "7.0.0-rc.2"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/helper-plugin-utils": {
|
|
||||||
"version": "7.0.0-rc.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-rc.2.tgz",
|
|
||||||
"integrity": "sha512-kavwJYTgdd5W12MpfMJMznrfsx3sCl0HMSJ0vsPcbwT9jhF0EmYL1eyfeYbo4pToYmQgPKp+VGtSHQ3wL8N5lQ==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@babel/plugin-syntax-jsx": {
|
"@babel/plugin-syntax-jsx": {
|
||||||
"version": "7.0.0-beta.47",
|
"version": "7.0.0-beta.47",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-beta.47.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-beta.47.tgz",
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@
|
||||||
"xlsx": "^0.13.3"
|
"xlsx": "^0.13.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.0.0-rc.1",
|
|
||||||
"@vue/cli-plugin-babel": "^3.0.1",
|
"@vue/cli-plugin-babel": "^3.0.1",
|
||||||
"@vue/cli-plugin-eslint": "^3.0.1",
|
"@vue/cli-plugin-eslint": "^3.0.1",
|
||||||
"@vue/cli-plugin-unit-mocha": "^3.0.1",
|
"@vue/cli-plugin-unit-mocha": "^3.0.1",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue