• Stars
    star
    207
  • Rank 189,769 (Top 4 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TypeScript and JavaScript code formatting plugin for dprint.

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.

More Repositories

1

dprint

Pluggable and configurable code formatting platform written in Rust.
Rust
3,104
star
2

dprint-plugin-prettier

Prettier wrapper plugin for dprint.
Rust
67
star
3

dprint-vscode

Visual Studio Code extension for formatting code with dprint.
TypeScript
49
star
4

dprint-swc-ext

Functionality to make swc easier to work with.
Rust
37
star
5

jsonc-parser

JSONC parser for Rust
Rust
27
star
6

js-formatter

JS formatter for dprint Wasm plugins.
TypeScript
20
star
7

dprint-plugin-exec

Formatting plugin for dprint that formats code via other formatting CLI tools.
Rust
19
star
8

dprint-plugin-markdown

Markdown code formatting plugin for dprint.
Rust
16
star
9

dprint-intellij

A dprint plugin for Intellij.
Kotlin
13
star
10

dprint-plugin-json

JSON code formatting plugin for dprint.
Rust
11
star
11

check

GitHub action for running `dprint check`.
8
star
12

dprint-plugin-roslyn

Roslyn wrapper C# and Visual Basic code formatting plugin for dprint
C#
7
star
13

dprint-plugin-toml

TOML code formatting plugin for dprint
Rust
7
star
14

dprint-plugin-rustfmt

Rustfmt wrapper plugin for dprint.
Rust
5
star
15

dprint-plugin-dockerfile

Dockerfile code formatting plugin for dprint.
Rust
4
star
16

plugins

Redirect service to GitHub releases.
TypeScript
4
star
17

dprint-node

Node packages for dprint.
TypeScript
4
star
18

dprint-plugin-sql

Wrapper around sqlformat-rs for use as a dprint plugin.
Rust
3
star
19

homebrew-dprint

Homebrew formula for dprint.
Ruby
2
star
20

dprint-sublime

Sublime Text extension for formatting code with dprint.
Python
2
star
21

dprint-plugin-yapf

DEPRECATED - yapf wrapper Python code formatting plugin for dprint
Python
2
star
22

automation

Common scripts used across repos.
TypeScript
2
star
23

node-plugin-base

Common code that can be used to create a Node-based dprint formatting plugin. [Archived: Too slow]
TypeScript
1
star