Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 377 Bytes

override-calls-super.md

File metadata and controls

23 lines (18 loc) · 377 Bytes

Require super calls in overridden methods

Rule Details

Examples of incorrect code for this rule

class Component extends ComponentBase {
  componentWillMount() {
    this._isMounted = true;
  }
}

Examples of correct code for this rule

class Component extends ComponentBase {
  componentWillMount() {
    super.componentWillMount();
  }
}