[eslint config] [base] [breaking] no-else-return: disallow else-if

This commit is contained in:
Thomas Grainger
2017-10-16 21:12:47 +01:00
committed by Jordan Harband
parent f2a65c6898
commit 01e72b9963

View File

@@ -58,8 +58,7 @@ module.exports = {
// disallow else after a return in an if
// https://eslint.org/docs/rules/no-else-return
// TODO: semver-major, set allowElseIf to false
'no-else-return': ['error', { allowElseIf: true }],
'no-else-return': ['error', { allowElseIf: false }],
// disallow empty functions, except for standalone funcs/arrows
// http://eslint.org/docs/rules/no-empty-function