grid-all
gridPluginConfigs["grid-all"] enables every public rule exported by this
package.
Usageโ
import { gridPluginConfigs } from "stylelint-plugin-grid";
export default gridPluginConfigs["grid-all"];
Use this config after reading the
current static-analysis boundaries. Projects that
split grid containers and items across files may prefer
grid-recommended plus selected stricter rules.
Rules in this configโ
Fix legend: ๐ง = autofixable ยท โ = report only
| Rule | Fix | Description |
|---|---|---|
consistent-area-naming | โ | Require consistent naming for grid-template-areas and single-name grid-area identifiers. |
no-conflicting-placement | โ | Disallow same-block CSS Grid placement declarations that write the same placement slot. |
no-dense-auto-flow | โ | Disallow grid-auto-flow: dense because it can reorder auto-placed grid items visually. |
no-ineffective-container-properties | โ | Disallow CSS Grid container declarations in blocks whose final literal display value is not grid-capable. |
no-invalid-areas | โ | Disallow malformed grid-template-areas declarations. |
no-invalid-auto-repeat | โ | Disallow definitely invalid CSS Grid auto-repeat track sizes. |
no-invalid-minmax | โ | Disallow flexible fr values as the minimum argument in CSS Grid minmax() track sizes. |
no-invalid-repeat-count | โ | Disallow invalid fixed repeat counts in CSS Grid track templates. |
no-invalid-span | โ | Disallow non-positive span counts in CSS Grid placement declarations. |
no-mismatched-template-rows | โ | Require grid-template-rows track count to match grid-template-areas row count. |
no-overlapping-areas | โ | Disallow multiple selectors assigning the same single-name grid-area value in one stylesheet. |
no-reversed-placement-lines | โ | Disallow reversed or zero-width numeric CSS Grid placement line ranges. |
no-unknown-areas | โ | Disallow single-name grid-area references that do not match any named area declared in the same stylesheet. |
no-unused-areas | โ | Disallow named template areas that are never referenced by a single-name grid-area declaration in the same stylesheet. |
no-zero-grid-lines | โ | Disallow line 0 in CSS Grid placement declarations. |
prefer-gap-properties | ๐ง | Prefer modern gap, row-gap, and column-gap properties over legacy grid gap aliases. |
prefer-minmax-zero-fr | โ | Prefer minmax(0, <flex>) for bare flexible CSS Grid column tracks. |
require-explicit-rows-with-column-flow | โ | Require explicit row sizing when a rule uses grid-auto-flow: column. |
require-explicit-tracks-with-areas | โ | Require explicit track sizing alongside CSS Grid named area templates. |
validate-area-shapes | โ | Require every named grid template area to form one contiguous rectangle. |
validate-track-counts | โ | Require template row and column track counts to match grid-template-areas dimensions. |