website/src/pages/lint/rules/noInvalidConstructorSuper.md
This rule is recommended by Rome.
Prevents the incorrect use of super() inside classes.
It also checks whether a call super() is missing from classes that extends other constructors.
class A {
constructor() {
super();
}
}
class A extends undefined {
constructor() {
super();
}
}
export default class A extends B {
constructor() {
super();
}
}
export class A {
constructor() {}
}