Skip to content

Commit

Permalink
fix: #23 - Object literal with async method in new expression's argum…
Browse files Browse the repository at this point in the history
…ent is not kept inline multi-lineable

Closes #23.
  • Loading branch information
dsherret committed Jul 7, 2020
1 parent 52ee087 commit 015dc7e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "dprint-plugin-typescript"
description = "TypeScript code formatting plugin for Dprint."
keywords = ["formatting", "formatter", "typescript"]
version = "0.19.7"
version = "0.19.8"
authors = ["David Sherret <[email protected]>"]
edition = "2018"
license = "MIT"
Expand All @@ -21,9 +21,9 @@ overflow-checks = false
panic = "abort"

[dependencies]
dprint-core = "0.23.0"
swc_common = "=0.6.1"
swc_ecma_ast = "=0.23.0"
dprint-core = "0.24.0"
swc_common = "=0.6.2"
swc_ecma_ast = "=0.23.1"
swc_ecma_parser = "=0.27.0"
serde = { version = "1.0.88", features = ["derive"] }
serde_json = "1.0"
Expand Down
12 changes: 12 additions & 0 deletions tests/specs/issues/issue0023.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
~~ deno: true ~~
== should stay formatting inline multi-lineable ==
new ReadableStreamImpl({
async pull(controller: ReadableStreamDefaultController): Promise<void> {
},
})

[expect]
new ReadableStreamImpl({
async pull(controller: ReadableStreamDefaultController): Promise<void> {
},
});

0 comments on commit 015dc7e

Please sign in to comment.