# Formatting TypeScript https://github.com/microsoft/TypeScript/pull/54820 * dprint - extremely fast, used by Deno itself. * Can easily support format-on-save in the checker instantaneously. * Looking at formatting DefinitelyTyped with a different config. * What's the workflow? * Recommend installing dprint formatting extension. * `npm run format` * CI checks ensure that. * Prettier is a lot more prescriptive. dprint is closer to gofmt or to some extent the TypeScript formatter, keeps general intent. * Our lines length is set to 1000 (!) * Some prescritive views on when to swap to multiline. * Still knobs if you need. * Some stuff that's not yet supported: * Single imports on the same line. * Space-aligned comments.
Formatting TypeScript
#54820
npm run format