230 releases (90 breaking)
new 0.90.4 | Apr 24, 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 |
#342 in Parser implementations
8,524 downloads per month
Used in 18 crates
(16 directly)
545KB
13K
SLoC
dprint-plugin-typescript
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:
- Run
cargo build --target wasm32-unknown-unknown --release --features "wasm"
- Reference the file at
./target/wasm32-unknown-unknown/release/dprint_plugin_typescript.wasm
in a dprint configuration file.
Dependencies
~9.5MB
~224K SLoC