feat(fmt): improve width calculation (#16982)

Formats code according to Unicode Standard Annex #11 rules
(https://crates.io/crates/unicode-width).

This aligns `deno fmt` more with prettier.
This commit is contained in:
David Sherret 2022-12-07 17:32:24 -05:00 committed by GitHub
parent f8bcf6be28
commit dac30af151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 115 additions and 114 deletions

View file

@ -61,9 +61,9 @@ clap_complete = "=3.1.2"
clap_complete_fig = "=3.1.5"
data-url.workspace = true
dissimilar = "=1.0.4"
dprint-plugin-json = "=0.16.0"
dprint-plugin-markdown = "=0.14.3"
dprint-plugin-typescript = "=0.78.0"
dprint-plugin-json = "=0.17.0"
dprint-plugin-markdown = "=0.15.0"
dprint-plugin-typescript = "=0.79.0"
encoding_rs.workspace = true
env_logger = "=0.9.0"
eszip = "=0.31.0"
@ -71,7 +71,7 @@ fancy-regex = "=0.10.0"
flate2.workspace = true
http.workspace = true
import_map = "=0.13.0"
indexmap = "=1.9.1"
indexmap = "=1.9.2"
indicatif = "=0.17.1"
jsonc-parser = { version = "=0.21.0", features = ["serde"] }
libc.workspace = true