-
`insertAfter` adds new line before inserted ast.
I created second import by jscodeshift so in js it looks like
```
//Core
import React, { Component, PropTypes } from 'react';
import connect …
ghost updated
3 years ago
-
Currently the transform function puts the types directly into the modified file. How feasible would it be to emit them to a named `.d.ts` file next to the altered file?
I'm working w/ jsx files that …
-
I'm programmatically invoking `jscodeshift` to perform some codemods; this is part of a process that will be invoked across a large number of repos to automatically make changes, commit them, and open…
-
I think we can take the comment node and move it to the parent and this will preserve them. I'll try to mess with it a bit.
-
Here is an example:
```
const j = api.jscodeshift;
j('(a = b)[c]')
.find(j.MemberExpression)
.replaceWith(({node: {object, property, computed}}) => j.memberExpression(object, property, comp…
-
### Is your feature request related to a problem? Please describe.
The releases are managed internally by Meta employees which makes it difficult to publish new versions. These release can be automat…
-
Hi, all. I'm trying to run jscodeshift to modify Properties of an ObjectExpression. The code I'm running (and the files I'm running it on) are more complex, but here is a simple example to illustrate …
-
Now I have to iterate comment nodes and modify values, but comment's signature is staying untouched.
In:
```
// leading_comment
const definition = 'string'
/* block_comment */
```
Modificatio…
-
I recently used jscodeshift to add an additional argument to many function calls. Even when specifying wrapColumns, the function was still printed as one very long line instead of split over many line…
-
We haven't maintained these codemods at all. This tool also tries to do a lot more than is necessary. For the latest `throwsAsync` change I wrote a simple transform that can be applied by using `jscod…