typescript-eslint / typescript-eslint

:sparkles: Monorepo for all the tooling which enables ESLint to support TypeScript
https://typescript-eslint.io
Other
14.87k stars 2.67k forks source link

AST tightening: around init/definite combinations on let/var/const declarators #9221

Open Josh-Cena opened 3 weeks ago

Josh-Cena commented 3 weeks ago

Suggestion

In https://github.com/typescript-eslint/typescript-eslint/pull/9211: we are planning to enforce the following invariants in our AST for VariableDeclaration, specifically the declarators in declarations:

@sosukesuzuki @fisker Do these look safe to you?

fisker commented 3 weeks ago

Do these look safe to you?

I don't think Prettier really care, should be safe to us.