|
| 1 | +################### |
| 2 | +### Vale Config ### |
| 3 | +################### |
| 4 | + |
| 5 | +# This is a Vale linter configuration file. |
| 6 | +# - Repo: esp-vale-config (Default config) |
| 7 | +# - Version: v0-1-1 |
| 8 | +# It lists all necessary parameters to configure Vale for your project. |
| 9 | +# For official documentation on all config settings, see |
| 10 | +# https://vale.sh/docs/topics/config |
| 11 | + |
| 12 | + |
| 13 | +############## |
| 14 | +### Global ### |
| 15 | +############## |
| 16 | + |
| 17 | +# This section lists core settings applying to Vale itself. |
| 18 | + |
| 19 | + |
| 20 | +# Specify path to external resources (e.g., styles and vocab files). |
| 21 | +# The path value may be absolute or relative to this configuration file. |
| 22 | +StylesPath = .vale/styles |
| 23 | + |
| 24 | + |
| 25 | +# Specify the minimum alert severity that Vale will report. |
| 26 | +MinAlertLevel = suggestion # "suggestion", "warning", or "error" |
| 27 | + |
| 28 | + |
| 29 | +# Specify vocabulary for special treatment. |
| 30 | +# Create a folder in <StylesPath>/Vocab/<name>/and add its name here |
| 31 | +# The folder should contain two files: |
| 32 | +# - accept.txt -- lists words with accepted case-sensitive spelling |
| 33 | +# - reject.txt -- lists words whose occurrences throw an error |
| 34 | +# Vocab = Espressif |
| 35 | + |
| 36 | + |
| 37 | +# Specify the packages to import into your project. |
| 38 | +# A package is a zip file containing a number of rules (style) written in YAML. |
| 39 | +# For a list of official packages, see Package Hub at https://vale.sh/hub/ |
| 40 | +# For official documentation on packages, see |
| 41 | +# https://vale.sh/docs/topics/packages/ |
| 42 | +# Before linting, navigate to your project and run `vale sync` to download |
| 43 | +# the official packages specified below. |
| 44 | +# Packages = Package1, Package2, \ |
| 45 | +# https://example.com/path/to/package/Package.zip |
| 46 | +Packages = Google, Microsoft, RedHat, \ |
| 47 | +https://dl.espressif.com/dl/esp-vale-config/Espressif-latest.zip |
| 48 | + |
| 49 | + |
| 50 | +############### |
| 51 | +### Formats ### |
| 52 | +############### |
| 53 | + |
| 54 | +# This section enables association of "unknown" formats with the ones |
| 55 | +# supported by Vale. For official documentation on supported formats, see |
| 56 | +# https://vale.sh/docs/topics/scoping/ |
| 57 | +[formats] |
| 58 | + |
| 59 | +# For example, treat MDX files as Markdown files. |
| 60 | +# mdx = md |
| 61 | + |
| 62 | + |
| 63 | +################################ |
| 64 | +### Format-specific settings ### |
| 65 | +################################ |
| 66 | + |
| 67 | +# This section lists the settings that apply to specific file formats |
| 68 | +# based on their glob pattern. |
| 69 | +# Settings provided under a more specific glob pattern, |
| 70 | +# such as [*.{md,txt}] will override those in [*]. |
| 71 | +[*.{md,rst}] |
| 72 | + |
| 73 | + |
| 74 | +# Enable styles to activate all rules included in them. |
| 75 | +# BasedOnStyles = Style1, Style2 |
| 76 | +BasedOnStyles = Vale, Espressif-latest, Espressif-devportal |
| 77 | + |
| 78 | + |
| 79 | +### Deactivate individual rules ### |
| 80 | +### in enabled styles. |
| 81 | +# Style1.Rule1 = NO |
| 82 | +Vale.Repetition = NO |
| 83 | +Vale.Spelling = NO |
| 84 | +Espressif-latest.Admonitions = NO |
| 85 | +Espressif-latest.Adverbs = NO |
| 86 | +Espressif-latest.Contractions = NO |
| 87 | +Espressif-latest.HeadingBegin = NO |
| 88 | +Espressif-latest.HeadingEnd = NO |
| 89 | +Espressif-latest.Headings = NO |
| 90 | +Espressif-latest.Monospace = NO |
| 91 | +Espressif-latest.PascalCamelCase = NO |
| 92 | +Espressif-latest.TermsAcronyms = NO |
| 93 | +Espressif-latest.TermsFixedPattern = NO |
| 94 | +Espressif-latest.TermsSingleCorrectSpelling = NO |
| 95 | + |
| 96 | + |
| 97 | +### Change default severity level ### |
| 98 | +### of an activated rule. |
| 99 | +# Choose between "suggestion", "warning", or "error". |
| 100 | +# Style1.Rule2 = error |
| 101 | + |
| 102 | + |
| 103 | +### Activate individual rules ### |
| 104 | +### in non-enabled styles stored in <StylesPath>. |
| 105 | +# Style1.Rule = YES |
| 106 | +Google.Gender = YES |
| 107 | +Google.GenderBias = YES |
| 108 | +Google.Slang = YES |
| 109 | +Google.Spacing = YES |
| 110 | +Microsoft.DateNumbers = YES |
| 111 | +Microsoft.Ellipses = YES |
| 112 | +#Microsoft.FirstPerson = YES |
| 113 | +Microsoft.Hyphens = YES |
| 114 | +Microsoft.Ordinal = YES |
| 115 | +#Microsoft.OxfordComma = YES |
| 116 | +Microsoft.Percentages = YES |
| 117 | +#Microsoft.Quotes = YES |
| 118 | +Microsoft.RangeTime = YES |
| 119 | +Microsoft.Semicolon = YES |
| 120 | +#Microsoft.SentenceLength = YES |
| 121 | +Microsoft.Suspended = YES |
| 122 | +Microsoft.Units = YES |
| 123 | +Microsoft.URLFormat = YES |
| 124 | +#Microsoft.We = YES |
| 125 | +Microsoft.Wordiness = YES |
| 126 | +#RedHat.Contractions = YES |
| 127 | +RedHat.RepeatedWords = YES |
0 commit comments