-
I'm unfamiliar with the internals of recast, but could recast feasibly support `recast.print(JSON.parse(JSON.stringify(recast.parse(code)))).code`?
I tried it with some minimal input:
var fo…
ebpa updated
10 months ago
-
```jscodeshift -t node_modules/5to6-codemod/transforms/amd.js src```
Result:
```C:\Users\Matt\Documents\GitHub\m2m-launch-ui\node_modules\lodash\lodash.js:17095
export default _;
^^^^^…
Geczy updated
6 years ago
-
### Duplicates
- [X] I have searched the existing issues
### Latest version
- [X] I have tested the latest version
### Current behavior 😯
Running `npx @mui/codemod v5.0.0/preset-safe ` …
-
Hi @atsikov!
This codemod repo is pretty useful! Would you be interested into bringing this into `eslint-plugin-testing-library` itself to corresponding rules as autofixes or suggestions?
-
Great utility. I am was able to generate a package and have some initial working codemods but as soon as there is a test file with a react element then there is an error thrown. Is there JSX support …
-
## 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…
-
## Determine what we want to include in v12 (to keep things
- code comments (`todo v12`, `remove in v12?`, etc.)
- existing ideas in https://github.com/carbon-design-system/carbon/issues/15803
…
-
What would be a good way to traverse down an object tree?
Consider the following file
```javascript
// menu.js
const menu = {
beverages: {
soft: {
water: 2,
juice: 3,
…
-
`codeshift.config.ts` is intended to act as the **source of truth for every codemod package**. Configs serve a dual purpose of holding all relevant metadata and one or more codemods.
## Config prop…
-
I noticed that you warn users that not every files may be parsed with Babel 5.
Since [v0.3.21](https://github.com/facebook/jscodeshift/releases/tag/v0.3.21), jscodeshift allows to specify a different…