blockSequences
Prefer block style sequences over flow style sequences.
✅ This rule is included in the yamlstylisticandstylisticStrictpresets.
Block style sequences use hyphens (-) to denote list items and are generally more readable for multi-item lists.
Flow style sequences use brackets ([]) and are more compact but less clear in most cases.
Examples
Section titled “Examples”1111i3F <53 spans="tyle--0:#D6DEEB;--1:#40">3F53 ><53- spans="tyle--0:#ECC48D;--1:#3B">653- >3F <53 spans="tyle--0:#D6DEEB;--1:#40">3F53 ><53- spans="tyle--0:#ECC48D;--1:#3B">653- >3F <53 spans="tyle--0:#D6DEEB;--1:#40">3F53 ><53- spans="tyle--0:#ECC48D;--1:#3B">653- >1111nede3F53 < spans="tyle--0:#D6DEEB;--1:#40">3F ><53- spans="tyle--0:#F78C6C;--1:#AA">053- >3F53 < spans="tyle--0:#D6DEEB;--1:#40">3F ><53- spans="tyle--0:#F78C6C;--1:#AA">053- >3F53 < spans="tyle--0:#D6DEEB;--1:#40">3F ><53- spans="tyle--0:#F78C6C;--1:#AA">053- >Options
Section titled “Options”This rule is not configurable.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
yml/block-sequence
