236 releases

new 0.91.4 Jul 19, 2024
0.91.1 Jun 4, 2024
0.89.3 Feb 23, 2024
0.88.7 Dec 1, 2023
0.9.8 Mar 29, 2020

#1 in #dprint-plugin

Download history 1715/week @ 2024-04-03 2678/week @ 2024-04-10 2723/week @ 2024-04-17 2066/week @ 2024-04-24 2947/week @ 2024-05-01 3527/week @ 2024-05-08 3649/week @ 2024-05-15 3989/week @ 2024-05-22 4135/week @ 2024-05-29 4013/week @ 2024-06-05 4664/week @ 2024-06-12 6838/week @ 2024-06-19 5301/week @ 2024-06-26 3354/week @ 2024-07-03 3005/week @ 2024-07-10 3223/week @ 2024-07-17

16,462 downloads per month
Used in 19 crates (17 directly)

MIT license

550KB
13K SLoC

dprint-plugin-typescript

CI

TypeScript formatting plugin for dprint.

This uses the swc parser for TypeScript written in Rust (it's super fast).

Install

See the GitHub releases.

Development

The tests are in the ./tests/specs folder. To run the tests, run cargo test.

Building Wasm file

You may wish to try out the plugin by building from source:

  1. Run cargo build --target wasm32-unknown-unknown --release --features "wasm"
  2. Reference the file at ./target/wasm32-unknown-unknown/release/dprint_plugin_typescript.wasm in a dprint configuration file.

Dependencies

~9.5MB
~213K SLoC