-
Given an input:
```
class Bar extends Foo {
override foo();
}
```
and a transform:
```
import { Transform } from 'jscodeshift';
const transform: Transform = (file, api) => {
const js…
-
https://mp.weixin.qq.com/s/0YQBksT0C7_ojAdFtWtFsQ
-
In particular, private fields and imports are both worth testing. A simple test of the console-stripper that uses both those features would suffice to close this issue.
This might require changing …
-
Our `.eslintignore`:
```
...
!.jenkins/
...
```
According to ESLint docs:
> Lines preceded by `!` are negated patterns that re-include a pattern that was ignored by an earlier pattern
…
-
I tried running the auto-patcher but it seemed to fail on a bunch of the files:
```
Processing 14 files...
Spawning 7 workers...
Sending 2 files to free worker...
Sending 2 files to free worker…
-
> UnhandledPromiseRejectionWarning: Error: Command failed with exit code 7 (E2BIG): /Users/runspired/.npm/_npx/61999/lib/node_modules/es5-getter-ember-codemod/node_modules/jscodeshift/bin/jscodeshift…
-
## Steps to reproduce
- run `npx types-react-codemod preset-18 ./src`
- select only the `implicit-children` option from the list and press enter
## Error
```
C:\src\my-repo [main ≡]> type…
-
### Verify canary release
- [X] I verified that the issue exists in the latest Next.js canary release
### Provide environment information
Operating System:
Platform: win32 …
-
In #126 it was proposed to add a helper for generating custom cli for codemod collections.
The reasoning mentioned there:
> Another option worth considering is custom cli. I did this with [my repo …
-
Hey 👋
it would be nice if jscodeshift can be used programmatically. Something like:
```js
import { Runner } from 'jscodeshift';
```
allowing to pass in the arguments from the CLI as object…