allowElseIf for else return, since its auto fix removes "else" but without newline

This commit is contained in:
LouisLam
2021-08-08 02:34:51 +08:00
parent 2677f5dd87
commit c990edc87d
2 changed files with 1 additions and 4 deletions

View File

@@ -62,9 +62,6 @@ module.exports = {
exceptAfterSingleLine: true,
}],
"no-unneeded-ternary": "error",
"no-else-return": ["error", {
"allowElseIf": false,
}],
"array-bracket-newline": ["error", "consistent"],
"eol-last": ["error", "always"],
//'prefer-template': 'error',