dillon1000/react

Commit

Support Flow `as` expressions in ESLint rules (#27590)

Support Flow `as` expressions in ESLint rules, e.g. `<expr> as <type>`.
This is the same syntax as TypeScript as expressions. I just looked for
any place referencing `TSAsExpression` (the TS node) or
`TypeCastExpression` (the previous Flow syntax) and added a case for
`AsExpression` as well.
Browse files
Changed paths2 files
First-parent comparison
M packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js ModifiedM scripts/eslint-rules/safe-string-coercion.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…