Skip to content

Call super()" before this in constructors #2077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 25, 2025
Merged

Conversation

jdeniau
Copy link
Member

@jdeniau jdeniau commented Mar 25, 2025

Not calling super in derived class was available for older classes that were transpiled to ES5 functions, but it is not supported for "class" syntax, that is widely compatible now.

We now activate this rule and fix all missing super() calls.

See https://archive.eslint.org/docs/rules/constructor-super for more informations.

@jdeniau jdeniau mentioned this pull request Mar 25, 2025
@jdeniau jdeniau added this to the 6.0 milestone Mar 25, 2025
@jdeniau jdeniau merged commit ef6bc43 into 6.x Mar 25, 2025
5 checks passed
@jdeniau jdeniau deleted the call-super-before-this branch March 25, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant