emptySequenceEntries
Reports empty sequence entries.
✅ This rule is included in the yaml logical presets.
Empty entries in YAML sequences can lead to unexpected null values in the parsed data.
If an empty entry is intentional, use explicit null to clarify intent.
Examples
Section titled “Examples”- one-- threeitems: - first - - third- one- two- three- one- null- threeitems: - first - second - thirdOptions
Section titled “Options”This rule is not configurable.
When Not To Use It
Section titled “When Not To Use It”If your project intentionally uses empty sequence entries to represent null values and you have consistent parser behavior, you may not need this rule. Projects with established conventions around implicit null values in YAML sequences may also choose to disable this rule.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
yml/no-empty-sequence-entry
Made with ❤️🔥 in Boston by
Josh Goldberg and contributors.