NodeSecure / estree-ast-utils

Utilities for AST (ESTree compliant)
MIT License
2 stars 1 forks source link

Refactor using ts-pattern #53

Open fraxken opened 1 year ago

fraxken commented 1 year ago

Replace switch stmt with ts-pattern (when possible because generators may be problematic sometimes).

PierreDemailly commented 1 year ago

Hi @fraxken Should the codebase be migrated to TypeScript in first place to be allow to use ts-pattern ? Or is this a AIO issue ?

Edit: NVM, didn't see you were assigned to it :)