|
| 1 | +# Vale configuration for Arcade docs |
| 2 | +# Using Google Developer Documentation Style Guide as base |
| 3 | + |
| 4 | +StylesPath = styles |
| 5 | + |
| 6 | +MinAlertLevel = suggestion |
| 7 | + |
| 8 | +# Downloaded via `vale sync` - these go to styles/<Package>/ |
| 9 | +Packages = Google, write-good, alex |
| 10 | + |
| 11 | +# Project-specific vocabulary (committed to repo) |
| 12 | +Vocab = Arcade |
| 13 | + |
| 14 | +[*.mdx] |
| 15 | +BasedOnStyles = Google, write-good, alex, Arcade |
| 16 | + |
| 17 | +# Ignore code blocks, inline code, and className/class attributes |
| 18 | +BlockIgnores = (?s)```[\s\S]*?``` |
| 19 | +TokenIgnores = (`[^`]+`|className="[^"]*"|className='[^']*'|class="[^"]*"|class='[^']*') |
| 20 | +
|
| 21 | +# --- Disable noisy/unhelpful rules --- |
| 22 | +
|
| 23 | +# Code-related false positives |
| 24 | +Google.Parens = NO |
| 25 | +Google.Spacing = NO |
| 26 | +Google.Quotes = NO |
| 27 | +
|
| 28 | +# JSX className attributes cause false positives (e.g., my-4, mx-2) |
| 29 | +Google.FirstPerson = NO |
| 30 | +
|
| 31 | +# Use Arcade.WordList instead (handles sentence-initial capitalization better) |
| 32 | +Google.WordList = NO |
| 33 | +
|
| 34 | +# Too strict for technical docs |
| 35 | +write-good.E-Prime = NO |
| 36 | +write-good.TooWordy = NO |
| 37 | +Google.Contractions = NO |
| 38 | +Google.Will = NO |
| 39 | +
|
| 40 | +# "execute" etc. flagged as profanity - not useful for tech docs |
| 41 | +alex.ProfanityUnlikely = NO |
| 42 | +
|
| 43 | +# "disabled" is valid in tech contexts (disabled buttons, disabled features) |
| 44 | +alex.Ablist = NO |
| 45 | +
|
| 46 | +# Ellipses are valid in code examples and UI text |
| 47 | +Google.Ellipses = NO |
| 48 | +
|
| 49 | +# Acronyms like API, SDK, MCP are standard in our docs |
| 50 | +Google.Acronyms = NO |
| 51 | +
|
| 52 | +# Disable duplicate passive voice rule (Google.Passive covers this) |
| 53 | +write-good.Passive = NO |
| 54 | +
|
| 55 | +# --- Keep enabled --- |
| 56 | +# Passive voice: Google.Passive |
| 57 | +# Toxic/harmful language checks (important!) |
| 58 | +# Good style rules (WordList, FirstPerson, We, Ellipses, Exclamation) |
| 59 | +
|
| 60 | +[*.md] |
| 61 | +BasedOnStyles = Google, write-good, alex, Arcade |
| 62 | +
|
| 63 | +# Ignore code blocks, inline code, and className/class attributes |
| 64 | +BlockIgnores = (?s)```[\s\S]*?``` |
| 65 | +TokenIgnores = (`[^`]+`|className="[^"]*"|className='[^']*'|class="[^"]*"|class='[^']*') |
| 66 | +
|
| 67 | +# Same rules for .md files |
| 68 | +Google.Parens = NO |
| 69 | +Google.Spacing = NO |
| 70 | +Google.Quotes = NO |
| 71 | +Google.FirstPerson = NO |
| 72 | +Google.WordList = NO # Use Arcade.WordList instead |
| 73 | +write-good.E-Prime = NO |
| 74 | +write-good.TooWordy = NO |
| 75 | +Google.Contractions = NO |
| 76 | +Google.Will = NO |
| 77 | +alex.ProfanityUnlikely = NO |
| 78 | +alex.Ablist = NO |
| 79 | +Google.Ellipses = NO |
| 80 | +Google.Acronyms = NO |
| 81 | +write-good.Passive = NO |
0 commit comments