-
This would avoid issues like https://github.com/reactjs/react-codemod/issues/249
-
`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
-
Should be mostly the PropTypes changes:
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html
-
Hi! thanks for this mod 💖
I just tried it on some cli files that started with:
```js
#!/usr/bin/env node
'use strict'
const commander = require('commander')
```
And that is translate…
-
Thanks a lot for creating this! I was testing out the codemod on my NodeJS files and it works great. However, it errors out when I try it on React components that have JSX. I get this error:
```
…
-
### Self-service
- [ ] I'd be willing to implement a fix
### Describe the bug
No transformation for getObject(params).createReadStream()
### Steps to reproduce
```ts
import { S3 } from…
-
Hello, and thank you for this wonderful project!
I'm just a junior dev trying to figure out how to set up codemods for our company's design system. I'd been playing around with setting up a script …
-
Hey there,
I've run into a bug which only pops up when I pass a recast AST into babel. I don't see anything obviously wrong in the recast AST, so I am not entirely sure if this here is even the rig…
-
项目中需要做一次校验处理,要对JSON做些小动作,开始了对AST的了解。
类似的需求如这个问题:[fs 如何读取 js 模块的注释](https://cnodejs.org/topic/58d335b92c8bf2a8364562a9),从论坛回复得到了一些不错的启发。
> 可以试试用 jsdoc 或 jscodeshift 的 API
> jscodeshift 是 FB 家的,它是对 r…
onvno updated
4 years ago
-