1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00

fix(fmt): do not insert expr stmt leading semi-colon in do while stmt body (#20093)

This is for when semiColons: false

Closes #20089
This commit is contained in:
David Sherret 2023-08-08 09:15:19 -04:00 committed by GitHub
parent 557b11b765
commit a037ed77a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -55,7 +55,7 @@
"ext/websocket/autobahn/reports"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.85.1.wasm",
"https://plugins.dprint.dev/typescript-0.86.1.wasm",
"https://plugins.dprint.dev/json-0.17.4.wasm",
"https://plugins.dprint.dev/markdown-0.15.3.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm",

4
Cargo.lock generated
View file

@ -1699,9 +1699,9 @@ dependencies = [
[[package]]
name = "dprint-plugin-typescript"
version = "0.85.0"
version = "0.86.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e49896ccb3ca2bfe03d96316b7acb0ce83dcfce69adc5b228f16fa6b30fb674b"
checksum = "8ef1276e8b038bd3db5a3d8fd9be92941223b308b5edf26db927682f4612506b"
dependencies = [
"anyhow",
"deno_ast",

View file

@ -74,7 +74,7 @@ data-url.workspace = true
dissimilar = "=1.0.4"
dprint-plugin-json = "=0.17.4"
dprint-plugin-markdown = "=0.15.3"
dprint-plugin-typescript = "=0.85.0"
dprint-plugin-typescript = "=0.86.1"
encoding_rs.workspace = true
env_logger = "=0.9.0"
fancy-regex = "=0.10.0"

View file

@ -198,7 +198,7 @@ function timestamp(): string {
pad(d.getMinutes()),
pad(d.getSeconds()),
].join(":");
return `${(d.getDate())} ${months[(d).getMonth()]} ${t}`;
return `${(d.getDate())} ${months[d.getMonth()]} ${t}`;
}
/**