Improve width calculation

feat(fmt): improve width calculation (#16982)
Improve width calculationdac30a-feat-improve-width-calculationfeatimprove width calculation fmt

Committed by dsherret

commit message
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.

Editor assessment

Good balance of headline and detail. The subject 'improve width calculation' is a touch generic, but the body earns it back: it names the mechanism (Unicode Standard Annex #11 via the unicode-width crate) and the motivation (aligning `deno fmt` with prettier), which is exactly the context a formatter change needs. feat(fmt) matches the project's convention for formatter behavior changes, and the blank-line separation and wrapping are correct. One micro-nit: the body's first sentence lacks a grammatical subject ('Formats code according to...'). Changelog readers get both the what and the why.

Browse categories

More feat examples · Back to search