marvinhagemeister / dprint-plugin-typescript

TypeScript and JavaScript code formatting plugin for dprint.

Home Page:https://dprint.dev/plugins/typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

TypeScript and JavaScript code formatting plugin for dprint.

https://dprint.dev/plugins/typescript

License:MIT License


Languages

Language:Rust 99.8%Language:JavaScript 0.2%