mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 23:37:55 -05:00
[eslint config] [base] [breaking] no-else-return: disallow else-if
This commit is contained in:
committed by
Jordan Harband
parent
f2a65c6898
commit
01e72b9963
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user