Skip to content

yaml-syntax

Default severity: error · since v0.1.0

airframe.yaml, invariants.yaml or a components/<id>.yaml is not valid YAML.

Why

A config that does not parse stops loading, since everything else depends on it. An invariants file that does not parse checks no invariants, which would read as passing; a component file that does not parse declares no owners.

Fix

Fix the syntax at the reported line. Common causes are unclosed [ or {, and tabs used for indentation.

Example

version: [1 # yaml-syntax: did not find expected ',' or ']'
content: design-system