2 title: no-constructor-return
8 In JavaScript, returning a value in the constructor of a class may be a mistake. Forbidding this pattern prevents mistakes resulting from unfamiliarity with the language or a copy-paste error.
12 This rule disallows return statements in the constructor of a class. Note that returning nothing with flow control is allowed.
14 Examples of **incorrect** code for this rule:
19 /*eslint no-constructor-return: "error"*/
39 Examples of **correct** code for this rule:
44 /*eslint no-constructor-return: "error"*/
55 return; // Flow control.