Skip to content

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

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”.

The loader retries — twice.

Rewrite:

The loader retries -- twice.

Retired Vale style – prose-format/NoUnicodeDash.yml

https://github.com/srobroek/slopvac/blob/29d6a802562e6454bc2131e8ac7eb24eab72c1bf/packages/slopvac-lint/vale-styles/prose-format/NoUnicodeDash.yml