Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4ea296f
fix: keep comments on their own lines between binary expression opera…
dsherret Nov 4, 2026
cc1ed72
fix: keep a call's arguments on its line when the last is an arrow fu…
dsherret Nov 4, 2026
d59cc75
fix: don't double indent a multi-line operand before the operand line…
dsherret Nov 4, 2026
aef143f
feat: add conditionalExpression.indentBranchContent (#878)
dsherret Nov 4, 2026
c9bd8c8
fix: parse a file with an unknown extension using the known extension…
dsherret Nov 4, 2026
6bd52f5
fix: don't add a space between a jsx expression container's braces an…
dsherret Nov 4, 2026
0d1634d
fix: support spaceSurroundingProperties for mapped types via mappedTy…
dsherret Nov 4, 2026
3c05101
fix: don't hang indent the second operand of a multi-line comparison …
dsherret Nov 4, 2026
b7a3853
feat: rename `sortTypeOnlyImports`/`sortTypeOnlyExports` value `none`…
dsherret Nov 4, 2026
f42d8aa
feat: accept `semicolons` and `forStatement.spaceAfterSemicolons` con…
dsherret Nov 4, 2026
92be6f8
fix: sort import declarations of the same module in a canonical order…
dsherret Nov 4, 2026
131ebe5
fix: remove parens around multi-line jsx with jsx.multiLineParens nev…
dsherret Nov 4, 2026
dd1a075
fix: keep parens around jsx that starts a member, call or new express…
dsherret Nov 4, 2026
7e15cce
refactor!: drop the old semiColons keys and none value instead of acc…
dsherret Nov 4, 2026
2e8e164
feat: add jsxExpressionContainer.preferSingleLine to keep the braces …
dsherret Nov 4, 2026
0f2dd0b
fix: keep hugging object siblings when they're all multi-line (#893)
dsherret Nov 5, 2026
1910b7f
fix: put hugged object siblings on one line when breaking their conta…
dsherret Nov 5, 2026
0dfd767
0.97.0
dsherret Nov 5, 2026
dca0e47
fix: keep a call body that moved to the next line after multi-line ar…
todor-a Nov 5, 2026
d1ca6e4
fix: let pattern import groups claim imports before categories (#895)
todor-a Nov 5, 2026
8991460
fix: add memberSpacing and code examples to the config schema (#898)
dsherret Nov 5, 2026
fb75618
0.97.1
dsherret Nov 5, 2026
7eadccf
docs: add a playground sample to the config schema (#899)
dsherret Nov 5, 2026
843e100
fix(BREAKING): restore `spaceSurroundingExpression` spacing around ob…
thristhart Nov 6, 2026
ac74316
0.98.0
dsherret Nov 6, 2026
b520902
fix: bracePosition maintain interaction with classes with a type lite…
thristhart Nov 6, 2026
93130eb
fix: keep trailing comment for switch case associated with the switch…
thristhart Nov 6, 2026
0a996c2
0.98.1
dsherret Nov 6, 2026
098eecb
fix: use UTF-16 columns for parse error positions (#906)
dsherret Nov 7, 2026
0b6fd7c
feat: add spaceBetweenObjectClosingBraces option (#904)
aPoCoMiLogin Nov 7, 2026
80bccd6
0.99.0
dsherret Nov 7, 2026
f5e7308
fix: keep the type arguments of an optional call after the question d…
dsherret Nov 7, 2026
ff42b52
0.99.1
dsherret Nov 7, 2026
ec7a5dd
fix: keep a space between a unary operator and an argument with the s…
dsherret Nov 9, 2026
03feb7d
0.99.2
dsherret Nov 9, 2026
8d9ba53
fix: break up an array that's the body of an assigned arrow function …
dsherret Nov 10, 2026
384cd93
fix: keep a multi-line value of a hanging list on the line after the …
dsherret Nov 10, 2026
2ccb312
fix: keep an array expanded with preferSingleLine when a value on its…
dsherret Nov 10, 2026
d838a55
feat: add `arrayExpression.linePerElement` option (#739)
xseman Nov 10, 2026
5f4179a
feat: add alignAssignments option
xseman Nov 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
run: cargo test
- name: Build release
run: cargo build --target wasm32-unknown-unknown --features "wasm" --release
- name: Generate config schema
run: 'deno run -A --minimum-dependency-age=0 jsr:@dprint/automation@0.14.3/tasks/publish-schema target/wasm32-unknown-unknown/release/dprint_plugin_typescript.wasm deployment/schema.json --extension ts'
- name: Wasm integration test - Setup
run: 'echo ''{ "plugins": ["./target/wasm32-unknown-unknown/release/dprint_plugin_typescript.wasm"] }'' >> dprint.test.json'
- name: Wasm integration test - Run
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const buildJob = job("build", {
uses: "Swatinem/rust-cache@v2",
with: { "save-if": "${{ github.ref == 'refs/heads/main' }}" },
},
// deno is needed by the "Lint workflow generation" step and, on a tag,
// by the "Pre-release" step
// deno is needed by the "Generate config schema" and "Lint workflow
// generation" steps and, on a tag, by the "Pre-release" step
{
uses: "denoland/setup-deno@v2",
with: { "deno-version": "v2.x" },
Expand All @@ -46,6 +46,15 @@ const buildJob = job("build", {
name: "Build release",
run: `cargo build --target wasm32-unknown-unknown --features "wasm" --release`,
},
// adds the outputs of the code examples to the config schema, which also
// checks that the plugin accepts every property in it
{
name: "Generate config schema",
run: [
"deno run -A --minimum-dependency-age=0 jsr:@dprint/automation@0.14.3/tasks/publish-schema",
`target/wasm32-unknown-unknown/release/${cargoWasmName}.wasm deployment/schema.json --extension ts`,
].join(" "),
},

// wasm integration test (typescript-specific)
{
Expand Down
17 changes: 9 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dprint-plugin-typescript"
version = "0.96.1"
version = "0.99.2"
authors = ["David Sherret <dsherret@gmail.com>"]
edition = "2024"
homepage = "https://github.com/dprint/dprint-plugin-typescript"
Expand Down Expand Up @@ -36,15 +36,16 @@ harness = false

[dependencies]
capacity_builder = "0.5.0"
dprint-core = { version = "0.75.2", features = ["formatting"] }
dprint-core = { version = "0.77.0", features = ["formatting"] }
dprint-core-macros = "0.1.0"
dprint-swc-ext = { version = "0.27.1", features = ["view"] }
dprint-swc-ext = { version = "0.28.1", features = ["view"] }
globset = "0.4"
percent-encoding = "2.3.1"
rustc-hash = "2.1.1"
serde = { version = "1.0.144", features = ["derive"] }
serde_json = { version = "1.0", optional = true }
thiserror = "2.0.18"
unicode-width = "0.2.0"

[dev-dependencies]
dprint-development = "0.12.1"
Expand Down
Loading
Loading