Skip to content

.vibator.json

This document is the reference of the .vibator.json configuration file: the fields it accepts and the way the framework loads rules, as they are provided by the base vibator framework.

A project adds a .vibator.json at its root. The file is optional and overrides the default configuration.

Reference

  • Fields — The top-level fields of the file.
  • rules — Per-rule overrides.
  • RuleConfig — The override one rule accepts.
  • Loading — How the framework finds and loads rules.

Fields

The top-level fields of the file.

DeclarationDescription
$schema?: stringThe path or URL of the schema that validates this file.
extends?: string[]Paths or package names of base configs to inherit.
plugins?: string[]Paths or package names of rule modules that live outside .vibator/.
exclude?: string[]Directory names to skip during file discovery, replacing the built-in defaults.
rules?: Record<string, Severity | RuleConfig>Per-rule overrides, keyed by rule id.

rules

A rule entry is a RuleConfig. A severity shorthand exists for convenience: a bare Severity stands for that severity alone, so { "no-deprecated-apis": "off" } reads as { "no-deprecated-apis": { "severity": "off" } }.

The framework validates every key against the loaded rules and reports an unknown rule id as an error.

RuleConfig

The override one rule accepts.

DeclarationDescription
severity?: SeverityThe severity applied to this rule.
options?: objectThe rule's options, validated by the rule's own schema.
docs?: stringThe path to the guideline shown for this rule.

A docs value resolves from the project root, such as .vibator/docs/my-rule.md, or from a package when prefixed with the package name, such as vibator:docs/rules/no-deprecated-apis.md. Scoped names work the same: @vibator/biome:docs/rules/biome.md.

Loading

How the framework finds and loads rules.

SourceLoading
.vibator/ folderEvery rule in the folder loads automatically.
pluginsEvery module named in plugins loads from its path or package.

Every loaded rule is configured by id in rules. Each id stays unique across the two sources, and the framework reports a repeated id as an error.

Released under the MIT License.