Skip to content

Commit e95ed36

Browse files
committed
fix: Keep paren expr found in LHS of assignment.
1 parent 86b3441 commit e95ed36

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "dprint-plugin-typescript"
33
description = "TypeScript code formatting plugin for Dprint."
44
keywords = ["formatting", "formatter", "typescript"]
5-
version = "0.19.4"
5+
version = "0.19.5"
66
authors = ["David Sherret <[email protected]>"]
77
edition = "2018"
88
license = "MIT"
@@ -14,9 +14,9 @@ crate-type = ["lib", "cdylib"]
1414

1515
[dependencies]
1616
dprint-core = "0.22.0"
17-
swc_common = "=0.6.0"
17+
swc_common = "=0.6.1"
1818
swc_ecma_ast = "=0.22.0"
19-
swc_ecma_parser = "=0.26.0"
19+
swc_ecma_parser = "=0.26.1"
2020
serde = { version = "1.0.88", features = ["derive"] }
2121
serde_json = "1.0"
2222

tests/specs/expressions/ParenExpr/ParenExpr_All.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ const test = (
1919
// test
2020
test
2121
);
22+
23+
== should keep paren expr on left hand side of assignment ==
24+
(x.test as unknown) = 6;
25+
26+
[expect]
27+
(x.test as unknown) = 6;

0 commit comments

Comments
 (0)