dwyl / goodparts

:see_no_evil: An ESLint Style that only allows JavaScript the Good Parts (and "Better Parts") in your code.
GNU General Public License v2.0
78 stars 26 forks source link

no useless return #261

Closed SimonLab closed 7 years ago

SimonLab commented 7 years ago

http://eslint.org/docs/rules/no-useless-return

'no-useless-error': 'error'

Force to define a value with a return statement.

nelsonic commented 7 years ago

@SimonLab I agree with adding this rule in that I don't see a downside... 👍