Skip to content

script-utils/linters/eslint-rules/require-super-call

ESLint rule: require-super-call

Reports an error when an override method does not call super.methodName() anywhere in its body. Overriding a method without calling super is almost always a mistake that silently breaks parent-class behavior (lifecycle hooks, initialization, event wiring, etc.).

The super call can appear anywhere in the method body — as a standalone statement, awaited, assigned to a variable, or nested in any expression.

The rule automatically skips methods where the parent implementation is abstract, since there is no concrete super to call.

If the override intentionally replaces the parent implementation, disable the rule on that line with an explanatory comment.

VariableDescription
MESSAGE_IDMessage ID reported when an override method does not access its super counterpart.
requireSuperCall