Skip to content

Commit 91ee7e5

Browse files
committed
调整 eslint-config,新增代码整洁之道
1 parent 747b561 commit 91ee7e5

File tree

4 files changed

+2135
-7
lines changed

4 files changed

+2135
-7
lines changed

.eslintrc.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ module.exports = {
3636
semi: ['error', 'never'],
3737
// 多行模式必须带逗号,单行模式不能带逗号
3838
'comma-dangle': ['error', 'always-multiline'],
39-
// 'max-len': ['error', 120],
39+
'max-len': ['error', {'code': 160}],
4040
// 禁止使用 console debugger
4141
// 'no-console': 1,
42-
// 'no-debugger': 1,
42+
// 禁止使用 debugger
43+
// 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
4344
},
4445
}

0 commit comments

Comments
 (0)