vale: add heading punctuation rule

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-04-16 20:51:43 +02:00
parent 215a5e5783
commit 983cb1da09
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
extends: existence
message: "Don't put a period at the end of a heading."
nonword: true
level: warning
scope: heading
action:
name: edit
params:
- trim_right
- "."
tokens:
- '[a-z0-9][.]\s*$'