Skip to content

Commit 54ee8f5

Browse files
authored
docs: README: get rid of recast
1 parent 48220ad commit 54ee8f5

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,13 +2438,12 @@ You have also ability to define `printer` of your choose, it can be:
24382438

24392439
-[`putout`](https://github.com/putoutjs/printer) (*default*)
24402440
-[`babel`](https://babeljs.io/docs/babel-generator)
2441-
-[`recast`](https://github.com/putoutjs/recast)
24422441

24432442
`@putout/printer` used by default, if you want to set any other update `.putout.json` with:
24442443

24452444
```json
24462445
{
2447-
"printer": "recast"
2446+
"printer": "babel"
24482447
}
24492448
```
24502449

@@ -2453,17 +2452,10 @@ You have also ability to define `printer` of your choose, it can be:
24532452
- ✅ much simpler in support then `recast`;
24542453
- ✅ opinionated and has good defaults;
24552454
- ✅ produces code like it was processed by **ESLint**;
2456-
- ✅ twice faster then `recast`;
2457-
2458-
`recast`:
2459-
2460-
- ✅ tryies to preserve formatting, and in 70% succeeded;
2461-
- ❌ for other cases you need [`eslint-plugin-putout`](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout#readme);
2462-
- ❌ slowest printer: involves additional parser + sophisticated printer;
24632455

24642456
`babel`:
24652457

2466-
-faster then `recast`;
2458+
-supports source maps then `recast`;
24672459
-[produces throw away code](https://github.com/babel/babel/issues/5139);
24682460

24692461
You can choose any of them, but preferred is *[default printer](https://github.com/putoutjs/printer)*.

0 commit comments

Comments
 (0)