Write ASCII double-hyphen instead of an em or en dash
Rule prose-format.no-unicode-dash in the Prose format category.
| Field | Value |
|---|---|
| Kind | pattern |
| Severity | error |
| Scope | raw |
Profile strict |
enforced |
Profile normal |
enforced |
Profile relaxed |
advisory |
Message
Section titled “Message”em/en dash: <match> – write -- instead, or a comma, colon, or two sentences
Replace with --, a comma, a colon, or two sentences. For a range, write “to”.
Examples
Section titled “Examples”Example 1: flagged
Section titled “Example 1: flagged”The loader retries — twice.Rewrite:
The loader retries -- twice.Provenance
Section titled “Provenance”Retired Vale style – prose-format/NoUnicodeDash.yml