Enhancement: Remove errorOnUnknownASTType
option from ParseOptions
#11246
Labels
breaking change
This change will require a new major version to be released
enhancement
New feature or request
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
triage
Waiting for team members to take a look
Before You File a Proposal Please Confirm You Have Done The Following...
Relevant Package
typescript-estree
My proposal is suitable for this project
Description
I don't think either the ESLint parser or Prettier wants to deal with unknown Node types, currently only ts.SyntaxKind.JSDocFunctionType is forbidden, but
JSDocAllType
,JSDocUnknownType
etc are not. This was discussed in #1525, but I don't think they are useful. Let's removeerrorOnUnknownASTType
and always throw an error? ForJSDoc...
type we can throw an error witha better error message rather than "Unknown AST_NODE_TYPE".I'm planning to drop support for
JSDoc...
in prettier/prettier#17511Additional Info
No response
The text was updated successfully, but these errors were encountered: