dillon1000/react
Commit
Browse files 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.
Changed paths2 files
First-parent comparisonpackages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js ModifiedM scripts/eslint-rules/safe-string-coercion.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…