Skip to content

Commit

Permalink
vale: add a suggestion rules for hyphenated words
Browse files Browse the repository at this point in the history
  • Loading branch information
davlgd committed Nov 22, 2024
1 parent a4bda3d commit 69c169b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/styles/Clever/hyphens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: existence
message: "Write '%s' with hyphens when used as an adjective before a noun, but as separate words when it appears as a noun phrase or after a verb"
level: suggestion
ignorecase: true
tokens:
- 'up-to-date'
- 'up to date'
- 'end-of-life'
- 'end of life'
2 changes: 1 addition & 1 deletion .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ MinAlertLevel = suggestion
Packages = Hugo, Google

[*.md]
BasedOnStyles = Vale, Google, Guides
BasedOnStyles = Clever, Vale, Google, Guides
Google.Headings = NO
Vale.Terms = NO
Google.Parens = NO
Expand Down

0 comments on commit 69c169b

Please sign in to comment.