astx
astx copied to clipboard
Super powerful structural search and replace for JavaScript and TypeScript to automate your refactoring
great work @jedwards1211 here. which use cases cannot be handled by astx? have you heard about semgrep? (they have data flow analysis, and built on top of tree-sitter) also grit.io...
Unfortunately babel doesn't put `leadingComments` on `x` in this case...
Hello. I think this tool is the best thing since sliced bread. However, it is a bit unconfrotable to have to install it globally and then run it from the...
Right now `astx` uses babel to parse and generate JS and TS. It would be nice to use typescript's own toolchain for parsing and generating. I'm not likely to have...
Both parts of expression: ```js const nodeTypes = Array.isArray(matcher.nodeType) ? matcher.nodeType : matcher.nodeType ``` Returns same result, and can be simplified to: ```js matcher.nodeType ``` Just landed this case to...
https://github.com/babel/babel/issues/11216