UNPKG

stylelint

Version:

A mighty, modern CSS linter.

60 lines (44 loc) 1.07 kB
# named-grid-areas-no-invalid Disallow invalid named grid areas. <!-- prettier-ignore --> ```css a { grid-template-areas: "a a a" "b b b"; } /** ↑ * This named grid area */ ``` ## Options ### `true` The following patterns are considered violations: All strings must define the same number of cell tokens. <!-- prettier-ignore --> ```css a { grid-template-areas: "a a a" "b b b b"; } ``` All strings must define at least one cell token. <!-- prettier-ignore --> ```css a { grid-template-areas: "" } ``` All named grid areas that spans multiple grid cells must form a single filled-in rectangle. <!-- prettier-ignore --> ```css a { grid-template-areas: "a a a" "b b a"; } ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css a { grid-template-areas: "a a a" "b b b"; } ``` <!-- prettier-ignore --> ```css a { grid-template-areas: "a a a" "b b b"; } ``` <!-- prettier-ignore --> ```css a { grid-template-areas: none; } ```