199 releases (84 breaking)
new 0.84.0 | Mar 20, 2023 |
---|---|
0.82.0 | Feb 5, 2023 |
0.79.0 | Dec 7, 2022 |
0.78.0 | Nov 10, 2022 |
0.9.8 | Mar 29, 2020 |
#48 in Testing
8,093 downloads per month
Used in 16 crates
(12 directly)
1MB
12K
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–14MB
~307K SLoC