feature: 修改eslint
This commit is contained in:
+1
-1
@@ -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 }], // 链式调用时,每个调用都需要换行
|
||||
|
||||
Reference in New Issue
Block a user