dprint/dprint-plugin-typescript

TypeScript and JavaScript code formatting plugin for dprint.

Rust

285

587 commits

updated Sep 5, 2026

See the code

README

dprint-plugin-typescript

npm version CI

TypeScript formatting plugin for dprint.

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

Install

Install and setup dprint.

Then in your project's directory with a dprint.json file, run:

dprint add typescript

See https://dprint.dev/plugins/typescript/ for more information.

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.

Contributors

(top 30 of 36)

dsherret

488 commits

bartlomieju

47 commits

kt3k

6 commits

joshleeb

3 commits

dprint/dprint-plugin-typescript

TypeScript and JavaScript code formatting plugin for dprint.

Rust

285

587 commits

updated Sep 5, 2026

See the code

README

dprint-plugin-typescript

npm version CI

TypeScript formatting plugin for dprint.

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

Install

Install and setup dprint.

Then in your project's directory with a dprint.json file, run:

dprint add typescript

See https://dprint.dev/plugins/typescript/ for more information.

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.

Contributors

(top 30 of 36)

dsherret

488 commits

bartlomieju

47 commits

kt3k

6 commits

joshleeb

3 commits

Languages

Rust

99.6%