You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are built on top of TS's parser, which is designed to be "forgiving" so it can handle incomplete code in usecases like an IDE.
We would like to add strict enforcement that when we convert the AST to ESTree it is done so it strictly adheres to the spec, but we haven't had the bandwidth for that yet.
Repro
Expected Result
A parse error, because
super()
is not valid except inconstructor() {}
and this iscontructor() {}
Actual Result
No parse error.
Additional Info
Confusion over this led me to file eslint/eslint#15234, but eslint 8 is actually handling this correctly because of the typo.
Related: babel/babel#13903
Versions
@typescript-eslint/parser
5.2.0
TypeScript
3.9.10
ESLint
8.1.0
node
17.0.1
The text was updated successfully, but these errors were encountered: