dprint-plugin-typescript

Crates.iodprint-plugin-typescript
lib.rsdprint-plugin-typescript
version0.93.2
sourcesrc
created_at2020-01-15 04:11:49.778187
updated_at2024-11-04 20:02:58.09255
descriptionTypeScript and JavaScript code formatter.
homepagehttps://github.com/dprint/dprint-plugin-typescript
repositoryhttps://github.com/dprint/dprint-plugin-typescript
max_upload_size
id198495
size1,090,063
David Sherret (dsherret)

documentation

README

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.
Commit count: 544

cargo fmt