UNPKG

tslint-consistent-codestyle

Version:

Additional rules to enforce constistent code style with tslint

11 lines (6 loc) 426 B
## no-return-undefined Using `return undefined` or `return void 0;` is unnecessary, because `undefined` is the default return value. Just use `return;` instead. ### Options #### `"allow-void-expression"` Allows the use of void expressions like `return void callback()` or `return void (foo = bar)`. Using the void keyword with a static expression like `return void 0` is still not allowed, as this serves no real purpose.