feature: 修改eslint

This commit is contained in:
zyn
2023-12-19 13:57:27 +08:00
parent 134a17c869
commit 2c1e9809b4
+1 -1
View File
@@ -47,7 +47,7 @@ module.exports = {
"padded-blocks": ["error", "never"], // 代码块内部前后不要有空行
"semi-spacing": ["error", { "before": false, "after": true }], // 分号前面不能有空格,后面需要有空格 var foo ; var bar; => var foo; var bar;
'no-multiple-empty-lines': [ 'error', { max: 1 }], // 最多只能有一行空行
'no-return-assign': ['error', 'except-parens'], // 禁止在 return 语句中使用赋值语句
'no-return-assign': ['off', 'except-parens'], // 禁止在 return 语句中使用赋值语句
'no-self-assign': 'error', // 禁止自我赋值
'no-self-compare': 'error', // 禁止自身比较
// "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 1 }], // 链式调用时,每个调用都需要换行