-
Can I make plugins for deno fmt to extend it? e.g. for supporting class sorting and attribute sorting in tsx files etc. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 FYI: You can simplify the configuration process with the |
Beta Was this translation helpful? Give feedback.
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: …