Skip to content

Commit

Permalink
修复eslint检测() => import报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 12, 2018
1 parent 6d225a9 commit 3bae2e7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
3 changes: 0 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"presets": [
"@vue/app"
],
"plugins": [
"@babel/plugin-syntax-dynamic-import"
]
}
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 0 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3bae2e7

Please sign in to comment.