ajafff/tslint-consistent-codestyle

early-exit: add option for disabling in constructors

jesperzach opened this issue · 2 comments

To me, it feels unconventional to use return in a constructor and it can potentially override the object reference if a non-primitive type is returned. I like the early-exit rule, but would love be able to enable an option that would disable the rule inside all constructors.

Agreed. Adding a new option sounds reasonable.

I'd like to take a swing at this.