2 title: no-this-before-super
8 In the constructor of derived classes, if `this`/`super` are used before `super()` calls, it raises a reference error.
10 This rule checks `this`/`super` keywords in constructors, then reports those that are before `super()`.
14 This rule is aimed to flag `this`/`super` keywords before `super()` callings.
18 Examples of **incorrect** code for this rule:
23 /*eslint no-this-before-super: "error"*/
56 Examples of **correct** code for this rule:
61 /*eslint no-this-before-super: "error"*/
66 this.a = 0; // OK, this class doesn't have an `extends` clause.
73 this.a = 0; // OK, this is after `super()`.
79 this.a = 0; // OK. this is not in a constructor.
88 If you don't want to be notified about using `this`/`super` before `super()` in constructors, you can safely disable this rule.