๐ฃ container-query-all
Full public rule catalog for container-query-sanity/*.
Includes recommended rules plus non-recommended strictness checks.
Rules in this configโ
Fix legend: ๐ง = autofixable ยท โ = report only
| Rule | Fix | Description |
|---|---|---|
no-block-axis-query-on-inline-size-container | โ | Disallow block-axis size features in queries targeting inline-size-only containers. |
no-conflicting-container-name-declarations | โ | Disallow reusing the same container name with conflicting static container-type declarations. |
no-degenerate-container-query-conditions | โ | Disallow redundant lower bounds that are always true for non-negative container sizes. |
no-invalid-container-query-ranges | โ | Disallow contradictory or mixed-unit ranges in container size queries. |
no-scroll-state-query-on-non-scroll-state-container | โ | Disallow scroll-state() queries that target names not declared with scroll-state containment. |
no-size-query-on-non-size-container | โ | Disallow size-feature @container queries that target names declared without size-capable container-type values. |
no-unknown-container-names | โ | Disallow @container names that are never declared via container-name/container in the same stylesheet. |
no-unreachable-container-intervals | โ | Disallow nested @container conditions whose intervals cannot overlap with parent container ranges. |
prefer-logical-size-features | โ | Prefer logical inline-size/block-size features over physical width/height in container queries. |
prefer-range-syntax | โ | Disallow legacy min-/max- container size syntax and require modern range comparison syntax. |
require-breakpoint-token-usage | โ | Require container breakpoints to come from tokenized values instead of hardcoded length literals. |
require-container-type-for-named-containers | โ | Require named containers used by size or scroll-state queries to declare an explicit container-type. |
require-named-container | โ | Require every @container rule to target an explicit, valid container name. |