-
I'm trying to write a codemod that changes from the old style of type imports:
`import type {MyType} from './types';`
to the [newer](https://devblogs.microsoft.com/typescript/announcing-typescri…
IanVS updated
2 years 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
-
**Why:**
As we are doing design sync stuff, we will have to change the style or behavior which might cause a breaking change.
**How:**
For any potential breaking change, before we merge the chan…
-
Привет!
Мы, наконец, выпустили новые версии bem-core и bem-components!
### bem-core 4.2.0
Версия полностью обратносовместимая, так что обновление должно быть совершенно «бесплатным».
Главным…
-
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?
-
I can't get the following code to add type parameters to my `CallExpression` in any of the parsers I've tried (flow and babylon7):
```javascript
const myExpression = j.callExpression(
j.ide…
-
Parsing and reprinting
``` js
// I have a parent
newNode.parent
&& (
(// Or I did but its different than the one I have now.
!originalNode.parent ||
newNode.parent.key !== originalN…
-
Refer to the following fiddle: http://astexplorer.net/#/27xKOBJJGN
When I have an object with a structure such as this:
``` js
const styles = {
base: {
height: '100%',
},
ribbon: {
bac…
-
Hello, I installed `jest-codemods` (v0.23.0) globally and ran the following command:
```
npx jest-codemods ./test/unit_tests/event/EventRepositorySpec.js
```
Afterwards I got to see this error…
-
Is it possible to use jscodeshift to modify `.d.ts` files?
I'm trying to parse a file that looks like this:
```
import * as runtime from '@prisma/client/runtime/index';
declare const prisma: u…