3 ms·
no-else-return is correct https://eslint.org/docs/latest/rules/no-else-return https://eslint.org/docs/latest/rules/no-else-return This rule is actually what go
by runarberg 3y ago
no-else-return is correct https://eslint.org/docs/latest/rules/no-else-return https://eslint.org/docs/latest/rules/no-else-return
This rule is actually what got me into the practice of returning early from the edge case so many years back. I think it was enabled by default in the—then very popular—AirBnB coding standard.