Linting
Check the pages each deployment changes for spelling mistakes, repeated words and your own style rules, and choose whether an error shows a warning or blocks the deployment.
Linting checks the pages a deployment changes for spelling mistakes, repeated words and your own style rules. It runs Vale, so you write your rules in Vale's format, in the Linting configuration (.vale.ini). You choose whether an error only shows a warning or blocks a deployment to the live site.
Before you begin
- Linting is available on the Standard plan and higher.
- You must be an Admin of the project to turn Linting on or change what an error does. Editors and Admins can edit the Linting configuration.
- Each deployment that lints pages uses credits: 1 credit for every 100 pages it lints, and at least 1. See AI credits.
Web editor
How to turn on Linting
Open Deployment Settings
In the dashboard, go to Settings → Deployment Settings.
Turn on Linting
Under Linting, turn on Lint the pages each deployment changes. Linting uses the default rules until you add a Linting configuration.

Choose what an error does
Under When Linting finds an error, choose one:
- Show a warning: the deployment goes ahead, and the findings are listed on the deployment.
- Block the deployment: a deployment to the live site stops until the errors are fixed. Preview deployments only show a warning.
Warnings and suggestions never stop a deployment.

How to change the rules
The Linting configuration is the .vale.ini file at the root of your repository. While Linting is on, you can create and edit it in the editor.
Open the Linting section
In the editor, click Site Config, then Linting. If Linting is off, the section shows Enable Linting, and you can read the configuration but not change it.

Create the configuration
Click Create Configuration. The editor adds .vale.ini with the default rules written out, so you can change them.
Edit and save
Change the rules, then click Save. Click Cancel to drop your edits.
Publish
A change applies to deployments once you publish it. The file appears in the Changes panel like any other change.
To go back to the default rules, click Delete Configuration.
How to see what Linting found
Click Activity in the dashboard and open the deployment. Its logs have one Linting line:
- Linting passed on 3 pages: no findings.
- Linting found 1 error, 2 warnings and 0 suggestions: followed by up to five findings, each as
page:line:column message (rule). - Linting skipped: Linting did not run, with the reason. See If Linting does not run.
When Block the deployment stops a deployment to the live site, the deployment fails with the errors it found. The live site stays as it was.
Code editor (Git)
How to add a Linting configuration
Add .vale.ini at the root of your repository. This configuration holds the default rules, and is the one the editor creates:
StylesPath = .vale/styles
MinAlertLevel = suggestion
Vocab = DocumentationAI
[*.{md,mdx}]
BasedOnStyles = Vale
Vale.Spelling = warning
Vale.Terms = NO
A Linting configuration can use these settings:
StylesPath: a folder in your repository that holds your styles.MinAlertLevel:suggestion,warningorerror.Vocab: the vocabulary to use. See How to accept or reject words.Packages: style packages from Vale's package registry, such asGoogle.BasedOnStyles: the styles to check with, such asVale, Google.- A single rule set to
YES,NOor a level, such asVale.Spelling = error. IgnoredScopes,SkippedScopes,IgnoredClasses,BlockIgnores,TokenIgnores,WordTemplate,CommentDelimitersandLang, as Vale documents them.
With any other setting, the configuration is not used. The deployment goes ahead, and its Linting line names the setting.
How to accept or reject words
Put words in accept.txt and reject.txt, one per line. Accepted words are never reported as spelling mistakes. Rejected words are reported as errors wherever they appear.
- Without a Linting configuration, the files go in
.vale/styles/config/vocabularies/DocumentationAI/. Common technical words, such as MDX, OpenAPI and GraphQL, are accepted already. - With a Linting configuration, the files go in the
config/vocabularies/DocumentationAI/folder of yourStylesPathfolder, and the configuration needsVocab = DocumentationAI. Only your own words are accepted.
Each line is a regular expression, so escape a dot (Documentation\.AI) and other special characters.
How to use a style package
Name the package in Packages and add it to BasedOnStyles:
StylesPath = .vale/styles
MinAlertLevel = suggestion
Vocab = DocumentationAI
Packages = Google
[*.{md,mdx}]
BasedOnStyles = Vale, Google
The package is downloaded each time a deployment lints, so you don't commit it.
What Linting checks
- Which pages: the pages in your navigation and the snippets that a deployment changes, written in Markdown or MDX. A deployment that changes no page lints nothing.
- Default rules: a spelling mistake is a warning, a repeated word (such as "the the") is an error, and a word in
reject.txtis an error. - Errors, warnings and suggestions: each rule reports at one of these levels. Only errors can block a deployment, and only to the live site.
If Linting does not run
Linting never stops a deployment because of its own trouble. The deployment goes ahead, and its Linting line says why Linting did not run:
- "Linting skipped: every page was redeployed": a deployment that redeploys every page is not linted. The next deployment that changes pages is.
- "Linting skipped: Linting is available on the Standard plan and higher": upgrade the organization's plan.
- "Linting skipped: this organization has no credits left": add credits. See AI credits.
- "Linting could not run", followed by the reason: fix what the reason names, such as a setting the Linting configuration cannot use.