Configuration
Configure Hyperlint
HyperLint offers a variety of configuration options. To customize settings, edit the .hyperlint/config.yaml
file within your GitHub repository. Configuration syntax is in YAML format, and options may differ slightly depending on your subscription plan (e.g., Free, Starter, etc.).
Repository Configuration
Configurations are set on per repository basis to ensure that hyperlint behaves as expected.
Configuration are configured by creating a file in the repository at .hyperlint/config.yaml
.
This file is only read from the main branch of the repository. If you need to change the configuration, you'll need to merge the file to the main branch. At that point, the configuration will be read on subsequent pull requests.
See an example in our demo repository repository.
Configuration properties
content_dir
This is the root directory for content files. The default is /
and, when you ask for a review, hyperlint will analyze every file in that pull request. If that file is of a supported type. Default: "/"
.
Examples:
authorized_users
This field specifies which users are allowed to trigger Hyperlint. To use it, provide a list of GitHub handles. If you would like any and all users to trigger Hyperlint, add '*' to the list. Default: ['*']
.
This only applies to custom reviews on pull requests and 'speaking' with Hyperlint, not to the ai-reviewer.
Examples:
link_seo
This is the configuration for Link & SEO checks.
enabled
(default: true
)
This controls whether Link & SEO checks are enabled.
Examples:
link_validation
Hyperlint can scan your pull requests to identify broken links.
See Link and SEO checking for more details.
The link validation results will be displayed in a GitHub Check on the pull request.
enabled
(default: true
)
This controls whether link validation is enabled.
image_alt_text_seo
Hyperlint can SEO optimize the Image Alt attribute text for your image links via Vision Language LLM Models.
See Image Alt Text SEO Optimizations for more details.
The SEO optimized Image Alt text will be displayed in a GitHub Check on the pull request.
Since Hyperlint cannot access content on private forks, the Image Alt Text SEO optimization feature is disabled on private fork pull requests.
enabled
(default: false
)
This controls whether the Image Alt Text SEO suggestions feature is enabled.
filename_seo
Hyperlint can suggest SEO optimized filenames.
See Filename SEO Optimizations for more details.
The SEO optimized filename suggestions will be displayed in a GitHub Check on the pull request.
enabled
(default: true
)
This controls whether Filename SEO is enabled.
Example full configuration
Here's a full configuration that you can use as a starting point: