Skip to content

Commit b97de93

Browse files
linlinjavagitee-org
authored andcommitted
!74 针对Issue“安装文档流程,运行启动前端是报错,前端无法展示页面”的修改建议
Merge pull request !74 from 刘松凌/master
2 parents c33b33c + 3829286 commit b97de93

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

litemall-admin/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
root: true,
33
parserOptions: {
4+
ecmaVersion:"latest",
45
parser: 'babel-eslint',
56
sourceType: 'module'
67
},

litemall-vue/.eslintrc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module.exports = {
22
root: true,
33
env: {
4-
node: true
4+
node: true,
5+
es6: true
56
},
67
// extends: ['plugin:vue/essential', '@vue/prettier'],
78
// rules: {
@@ -12,6 +13,8 @@ module.exports = {
1213
// 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
1314
// },
1415
parserOptions: {
15-
parser: 'babel-eslint'
16+
parser: 'babel-eslint',
17+
ecmaVersion:"latest",//最新版,或者你需要的 ECMAScript 版本
18+
sourceType:"module" // 允许使用 import/export 语句
1619
}
1720
};

0 commit comments

Comments
 (0)