-
I'm working with jscodeshift, and noticed an issue when re-printing an existing node. I'm creating a codemod to convert a `JSXElement` into another type of `JSXElement`, however, I'd like to re-use th…
skovy updated
7 months ago
-
I started tinkering with a codemod to replace `JedWatson/classNames` with `classwrap` re: [this comment](https://github.com/JorgeBucaran/classwrap/issues/5#issuecomment-331116262).
JSCodeShift hurt…
-
I had wanted to use Limber for showcasing https://github.com/NullVoxPopuli/ember-statechart-component/, because the story here is *really* slick with template imports -- but xstate (and ember-statecha…
-
So after https://github.com/babel/babel/pull/3561 allows babel to use recast as the parser/generator and the other prs fixed the babel 6 ast nodes for ast-types/recast we should be able to use babel a…
-
it'd be cool to have a list of common and useful snippets that do basic transforms
like adding a new import
moving one import to another
and so on
-
## Abstract
When parsing a file to AST and back (no transformation), the unary expressions containing `await` inside if statements get wrapped in parenthesis.
## Details
I've stumbled upon the fo…
-
Meta has archived [jsgrep](https://github.com/facebookarchive/jsgrep) and it feels like jscodeshift can potentially do everything that the jsgrep toolkit could do, yet I don't find any examples nor in…
-
-
When we got this problem in the `remix` repo (https://github.com/remix-run/remix/pull/3987), I reported this in the `jscodeshift` repo (https://github.com/facebook/jscodeshift/issues/520), but since a…
-
ES6 Block scoping seems to be broken in `renameTo`.
Repro:
```
jscodeshift: 0.5.0
- babel: 6.26.3
- babylon: 7.0.0-beta.47
- flow: 0.73.0
- recast: 0.14.7
```
Transform:
```js
modul…