Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dprint/dprint-plugin-typescript
TypeScript and JavaScript code formatting plugin for dprint.
https://github.com/dprint/dprint-plugin-typescript
Last synced: 3 days ago
JSON representation
TypeScript and JavaScript code formatting plugin for dprint.
- Host: GitHub
- URL: https://github.com/dprint/dprint-plugin-typescript
- Owner: dprint
- License: mit
- Created: 2020-06-05T16:29:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T18:46:50.000Z (9 months ago)
- Last Synced: 2024-05-01T11:24:23.951Z (9 months ago)
- Language: Rust
- Homepage: https://dprint.dev/plugins/typescript
- Size: 2.18 MB
- Stars: 239
- Watchers: 7
- Forks: 48
- Open Issues: 140
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-js-tooling-in-rust - dprint plugin for TypeScript
README
# dprint-plugin-typescript
[![](https://img.shields.io/crates/v/dprint-plugin-typescript.svg)](https://crates.io/crates/dprint-plugin-typescript) [![CI](https://github.com/dprint/dprint-plugin-typescript/workflows/CI/badge.svg)](https://github.com/dprint/dprint-plugin-typescript/actions?query=workflow%3ACI)
TypeScript formatting plugin for dprint.
This uses the [swc](https://github.com/swc-project/swc) parser for TypeScript written in Rust (it's super fast).
## Install
See the GitHub [releases](https://github.com/dprint/dprint-plugin-typescript/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"`
1. Reference the file at `./target/wasm32-unknown-unknown/release/dprint_plugin_typescript.wasm` in a dprint configuration file.