From 2c1e9809b48cc6e1a628e8e64b785892eb6e7fd3 Mon Sep 17 00:00:00 2001 From: zyn Date: Mon, 18 Dec 2023 17:53:40 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E4=BF=AE=E6=94=B9eslint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 0f0a4b516..fc3bc36a5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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 }], // 链式调用时,每个调用都需要换行