修复eslint检测() => import报错的问题

This commit is contained in:
zhigang.li@tendcloud.com 2018-10-12 12:13:56 +08:00
parent 6d225a9118
commit 3bae2e7207
4 changed files with 3 additions and 21 deletions

View File

@ -1,8 +1,5 @@
{ {
"presets": [ "presets": [
"@vue/app" "@vue/app"
],
"plugins": [
"@babel/plugin-syntax-dynamic-import"
] ]
} }

View File

@ -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'
} }
} }

17
package-lock.json generated
View File

@ -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",

View File

@ -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",