super in lifecycle methods (lifecycle-super)Enforces that super is called in lifecycle methods which require it.
For example, the connectedCallback should call super.connectedCallback() to avoid interrupting lit's rendering.
This rule enforces calling of super in the following lifecycle methods:
updateconnectedCallbackdisconnectedCallbackThe following patterns are considered warnings:
class Foo extends LitElement { connectedCallback() { doSomething(); } }
The following patterns are not warnings:
class Foo extends LitElement { connectedCallback() { super.connectedCallback(); doSomething(); } }
If you want to override lit's default implementation of a lifecycle method, you should disable this rule.