Skip to content

Commit c0f80e7

Browse files
author
罗学
committed
fix: 修改 eslint
1 parent 85e5976 commit c0f80e7

File tree

29 files changed

+2285
-830
lines changed

29 files changed

+2285
-830
lines changed

.eslintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ module.exports = {
2020
'prefer-promise-reject-errors': 0,
2121
'no-undef': 0,
2222
'no-unused-vars': 0,
23-
'no-sequences': 0
23+
'no-sequences': 0,
24+
'no-unused-expressions': 0
25+
// 'no-throw-literal': 0
2426
},
2527
globals: {
26-
wx: true,
2728
window: true,
2829
document: true,
29-
MY_ENV: true,
30-
$: true
30+
process: true
3131
},
3232
parserOptions: {
3333
parser: '@typescript-eslint/parser'

docs/readme/header.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ pk add <plugin> # 安装插件
6868
pk info # 查看项目及系统配置
6969
pk upgrade [filter] # 检查升级 npm 版本
7070
pk cm # commit 提交
71+
pk eslint # eslint 检查
7172
```
7273
----
7374
### webpack-box

0 commit comments

Comments
 (0)