Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Open
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I havesearched for related issues and found none that match my proposal.
- I have searched thecurrent rule list and found no rules that match my proposal.
- I haveread the FAQ and my problem is not listed.
Relevant Package
typescript-estree
My proposal is suitable for this project
- I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).
Description
I don't think either the ESLint parser or Prettier wants to deal with unknown Node types, currently onlyts.SyntaxKind.JSDocFunctionType is forbidden, butJSDocAllType
,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 forJSDoc...
inprettier/prettier#17511
Additional Info
No response