Skip to content

Commit aa83f72

Browse files
kodster28KianNH
andauthored
[Hyperlint] Wrangler capitalization, update ignore scope, add smart quote check (#16802)
* [Hyperlint] Wrangler capitalization, update ignore scope, add smart quote check * Update .vale.ini Co-authored-by: Kian <[email protected]> --------- Co-authored-by: Kian <[email protected]>
1 parent 5cb88a1 commit aa83f72

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
# Warning: cloudflare.NonStandardQuotes
3+
#
4+
# Use only standard single and double quotes, not left or right quotes.
5+
#
6+
# For a list of all options, see https://vale.sh/docs/topics/styles/
7+
extends: existence
8+
message: "Use standard single quotes or double quotes only. Do not use left or right quotes."
9+
level: warning
10+
ignorecase: true
11+
link: https://developers.cloudflare.com/style-guide/grammar/punctuation-marks-and-symbols/quotation-marks/
12+
scope: raw
13+
raw:
14+
- "[‘’“”]"

.github/styles/config/vocabularies/cloudflare/accept.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Wi-Fi
3636
WordPress
3737
Worker
3838
Workers
39-
Wrangler
39+
[wW]rangler
4040
VMware
4141
VPN
4242
YubiKey

.hyperlint/style_guide_test.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# This is a test
22

3-
Bad link at [this page](/test/).
3+
testing `worker-configuration.d.ts`.
44

5-
Build a better internet.
5+
Then also, ‘this thing'
66

7-
Testing [this page](https://developers.cloudflare.com/test/).
8-
9-
Going to [the marketing site](https://www.cloudflare.com)
7+
What about wrangler or Wrangler.

.vale.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ yml = yaml
99
mdx = md
1010

1111
[*]
12-
# Ignore code surrounded by backticks or plus sign, URLs, parameters defaults, and angle brackets.
13-
TokenIgnores = (<\/?[A-Z].+>), (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\+), (http[^\n]+\[), (https[^\n]+\[), ([^\n]+@[^\n]+\.[^\n])
12+
# Ignore code surrounded by plus sign, URLs, parameters defaults, and angle brackets.
13+
TokenIgnores = (<\/?[A-Z].+>), ([^\n]+=[^\n]*), (\+[^\n]+\+), (http[^\n]+\[), (https[^\n]+\[), ([^\n]+@[^\n]+\.[^\n])
1414

1515
[*.md]
1616
BasedOnStyles = Vale, cloudflare

0 commit comments

Comments
 (0)