File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff 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
24692461You can choose any of them, but preferred is * [ default printer] ( https://github.com/putoutjs/printer ) * .
You can’t perform that action at this time.
0 commit comments