Merge pull request #1027 from iview/2.0

修复eslint检测() => import报错的问题
This commit is contained in:
Lison 2018-10-12 12:14:19 +08:00 committed by GitHub
commit 0a7dc1a273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 21 deletions

View File

@ -1,8 +1,5 @@
{
"presets": [
"@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',
'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
'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/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": {
"version": "7.0.0-beta.47",
"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"
},
"devDependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.0.0-rc.1",
"@vue/cli-plugin-babel": "^3.0.1",
"@vue/cli-plugin-eslint": "^3.0.1",
"@vue/cli-plugin-unit-mocha": "^3.0.1",