Closed adrian-gierakowski closed 1 month ago
All rules enabled by default, but you can disable any of them printer also highly configurable so you can configure πPutout in any way you like. If you have ESLint config it will be used after πPutout done itβs work.
@coderaiser so the rules are enabled even though they are not listed in my config? I did run putout --disable-all
but it only flipped the one rule I had in my config to off
Yes, all rules enabled by default, that is not like ESLint, when you enable what you want, you disable what you want, if you need to set baseline use putout . β-disable-all
this will disable all found rules violations, and then you can enable what you really want.
I've only got 1 rule enabled in
.putout.json
:but after running
putout --fix path-to-my-file.ts
the entire file is reformatted, including things like converting try\catch to calls totry-to-catch
, chading indentation, adding semicolons etc etc.