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 }], // 链式调用时,每个调用都需要换行