Skip to content

How to make plugins for deno fmt #21934

Closed Answered by nberlette
daalfox asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for digging up an old thread, but I felt the need to chime in.

See dprint and dprint-plugin-typescript. It's the formatter Deno uses under the hood, created by absolute unit @dsherret. It's written in Rust, supports multiple runtimes with a WASM build, among other things.

While deno fmt doesn't offer much in terms of configurability, dprint has configurability like no other. You can dial in its behavior with practically every type of change it applies. That granularity of control (and probably its performance, too) were partially responsible for it becoming the formatter of choice for TypeScript itself not too long ago.

FYI: You can simplify the configuration process with the deno: …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daalfox
Comment options

Answer selected by daalfox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants