-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.spectral.config.cjs
More file actions
33 lines (31 loc) · 892 Bytes
/
.spectral.config.cjs
File metadata and controls
33 lines (31 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* Spectral Configuration for YAML/JSON Linting
*
* Spectral is a JSON/YAML linter with support for OpenAPI, AsyncAPI, and custom rulesets.
* This configuration provides:
* - Base YAML validation
* - Passes all non-workflow YAML files without errors
*
* For GitHub Actions workflow-specific validation, use lint:workflows which targets
* only .github/workflows/*.yml files.
*
* File exclusions are handled via .spectralignore (Spectral's native ignore mechanism)
*
* @see https://docs.stoplight.io/docs/spectral/
*/
/**
* Spectral Configuration Object
*
* @type {import('@stoplight/spectral-core').RulesetDefinition}
*/
module.exports = {
/**
* No extended rulesets - this is a minimal config for general YAML
*/
extends: [],
/**
* No custom rules for general YAML files
* Workflow-specific rules are in .spectral-workflows.yaml
*/
rules: {},
};