Enhancement: Forbid catch clause with initializer #8182
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement
New feature or request
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
Before You File a Proposal Please Confirm You Have Done The Following...
Relevant Package
typescript-estree
My proposal is suitable for this project
Description
Expect errors when parsing
https://github.com/microsoft/TypeScript/blame/0ea57f6ca19c23e0bc690bd2706f6b6e11a97e02/tests/cases/compiler/catchClauseWithInitializer1.ts#L1
Additional Info
This crashes
unicorn/prefer-optional-catch-binding
rule. CI logPrettier should throw instead of ignoring it. Prettier playground
TS playground
The text was updated successfully, but these errors were encountered: