Skip to content

Commit

Permalink
docs: add rule to flag all caps
Browse files Browse the repository at this point in the history
  • Loading branch information
lennessyy committed Jul 15, 2024
1 parent edc0218 commit 6df5e9b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: existence
message: "Headings should not be entirely in uppercase."
level: error
scope: heading
ignorecase: false
raw:
- ^[A-Z\s]+$
3 changes: 2 additions & 1 deletion packages/spectrocloud/tests/heading-title-case/.vale.init
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
StylesPath = ../../styles/
MinAlertLevel = suggestion
[*.md]
spectrocloud.heading-title-case = YES
spectrocloud.heading-title-case = YES
spectrocloud.heading-all-caps = YES
2 changes: 2 additions & 0 deletions packages/spectrocloud/tests/heading-title-case/fail.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## This isn't title case

## this is also not title case

## THIS AGAIN IS NOT TITLE CASE

0 comments on commit 6df5e9b

Please sign in to comment.