Skip to content

IDE

Commitlint offers schema by supporting JSON schema so that you can configure your IDE to work with Commitlint and have better developer experience.

Visual Studio Code

Configure your Visual Studio Code to work with Commitlint.

Edit in settings.json

Update your user settings.json or workspace settings (/.vscode/settings.json) to configure the schema.

JSON

"json.schemas": [
{
"fileMatch": [
".commitlintrc",
".commitlintrc.json"
],
"url": "https://github.com/KeisukeYamashita/commitlint-rs/releases/latest/download/schema.json"
}
]

YAML

Associating schemas with YAMLs are supported by the YAML language server.

"yaml.schemas": {
"https://github.com/KeisukeYamashita/commitlint-rs/releases/latest/download/schema.json": [
".commitlintrc",
".commitlintrc.yaml",
".commitlint.yml"
]
}

Specify schema in the configuration file

{
"$schema": "https://github.com/KeisukeYamashita/commitlint-rs/releases/download/v0.2.0/schema.json",
"rules": {}
}

JSON

Add the following comment in your .commitlintrc or .commitlintrc.json file.

{
"$schema": "https://github.com/KeisukeYamashita/commitlint-rs/releases/latest/download/schema.json",
"rules": {}
}

YAML

Associating schemas with YAMLs are supported by the YAML language server. Add the following comment in your .commitlintrc, .commitlintrc.yaml or .commitlintrc.yml file.

# yaml-language-server: $schema=https://github.com/KeisukeYamashita/commitlint-rs/releases/latest/download/schema.json
rules: