We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c33b33c + 3829286 commit b97de93Copy full SHA for b97de93
litemall-admin/.eslintrc.js
@@ -1,6 +1,7 @@
1
module.exports = {
2
root: true,
3
parserOptions: {
4
+ ecmaVersion:"latest",
5
parser: 'babel-eslint',
6
sourceType: 'module'
7
},
litemall-vue/.eslintrc.js
@@ -1,7 +1,8 @@
env: {
- node: true
+ node: true,
+ es6: true
// extends: ['plugin:vue/essential', '@vue/prettier'],
8
// rules: {
@@ -12,6 +13,8 @@ module.exports = {
12
13
// 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
14
// },
15
- parser: 'babel-eslint'
16
+ parser: 'babel-eslint',
17
+ ecmaVersion:"latest",//最新版,或者你需要的 ECMAScript 版本
18
+ sourceType:"module" // 允许使用 import/export 语句
19
}
20
};
0 commit comments