3 ms·
I'd like to highlight dprint [0]. It is not as opinionated as Prettier, and its AST-node-specific configuration is awesome [1]. Deno uses it under the hood for
by AntonCTO 3y ago
I'd like to highlight dprint [0]. It is not as opinionated as Prettier, and its AST-node-specific configuration is awesome [1]. Deno uses it under the hood for `deno fmt` (and switched from Prettier [2]), and the TypeScript team uses it for formatting their code base (switched from formatting by ESLint [3]).
[0] https://dprint.dev/ https://dprint.dev/
[1] https://dprint.dev/plugins/typescript/config/ https://dprint.dev/plugins/typescript/config/
[2] https://github.com/denoland/deno/issues/3818 https://github.com/denoland/deno/issues/3818
[3] https://github.com/microsoft/TypeScript/pull/54820 https://github.com/microsoft/TypeScript/pull/54820