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: `PrivateIdentifier` can only be LHS of `BinaryExpression[operator='in']` #9222

Open Josh-Cena opened 3 weeks ago

Josh-Cena commented 3 weeks ago

Suggestion

We are planning to enforce the following invariants in our AST for BinaryExpression:

@sosukesuzuki @fisker Do these look safe to you?

fisker commented 3 weeks ago

Looks good.