231 releases (90 breaking)

0.90.5 May 5, 2024
0.89.3 Feb 23, 2024
0.88.7 Dec 1, 2023
0.88.6 Nov 25, 2023
0.9.8 Mar 29, 2020

#308 in Parser implementations

Download history 1327/week @ 2024-01-23 1364/week @ 2024-01-30 1395/week @ 2024-02-06 1360/week @ 2024-02-13 2120/week @ 2024-02-20 2029/week @ 2024-02-27 1557/week @ 2024-03-05 1484/week @ 2024-03-12 1203/week @ 2024-03-19 1498/week @ 2024-03-26 2065/week @ 2024-04-02 2322/week @ 2024-04-09 2741/week @ 2024-04-16 2133/week @ 2024-04-23 2696/week @ 2024-04-30 2619/week @ 2024-05-07

10,631 downloads per month
Used in 18 crates (16 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
~223K SLoC