Skip to content

Commit 015dc7e

Browse files
committed
fix: #23 - Object literal with async method in new expression's argument is not kept inline multi-lineable
Closes #23.
1 parent 52ee087 commit 015dc7e

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 4 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.7"
5+
version = "0.19.8"
66
authors = ["David Sherret <[email protected]>"]
77
edition = "2018"
88
license = "MIT"
@@ -21,9 +21,9 @@ overflow-checks = false
2121
panic = "abort"
2222

2323
[dependencies]
24-
dprint-core = "0.23.0"
25-
swc_common = "=0.6.1"
26-
swc_ecma_ast = "=0.23.0"
24+
dprint-core = "0.24.0"
25+
swc_common = "=0.6.2"
26+
swc_ecma_ast = "=0.23.1"
2727
swc_ecma_parser = "=0.27.0"
2828
serde = { version = "1.0.88", features = ["derive"] }
2929
serde_json = "1.0"

tests/specs/issues/issue0023.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
~~ deno: true ~~
2+
== should stay formatting inline multi-lineable ==
3+
new ReadableStreamImpl({
4+
async pull(controller: ReadableStreamDefaultController): Promise<void> {
5+
},
6+
})
7+
8+
[expect]
9+
new ReadableStreamImpl({
10+
async pull(controller: ReadableStreamDefaultController): Promise<void> {
11+
},
12+
});

0 commit comments

Comments
 (0)