font-all
font-all enables every public font/* rule exported by this package.
Use it when you want the strictest repository-wide font-quality policy.
Rules in this configโ
Fix legend: ๐ง = autofixable ยท โ = report only
| Rule | Fix | Description |
|---|---|---|
consistent-font-display | โ | Require @font-face declarations in the same file to use a consistent font-display value. |
consistent-font-family-casing | ๐ง | Require consistent font-family casing across @font-face declarations. |
local-src-before-url | ๐ง | Require local(...) entries to appear before url(...) entries in @font-face src. |
no-absolute-font-url | โ | Disallow absolute root-relative font URLs in @font-face src declarations. |
no-data-uri-src | โ | Disallow data: URL font sources in @font-face src. |
no-duplicate-descriptors-in-font-face | โ | Disallow duplicate descriptor declarations within a single @font-face block. |
no-duplicate-font-face | โ | Disallow duplicate @font-face blocks that share the same font-family + font-style + font-weight variant. |
no-duplicate-font-family-src | โ | Disallow duplicate src URLs across @font-face blocks that share the same font-family name. |
no-duplicate-src-format | โ | Disallow duplicate explicit format() hints within a single @font-face src declaration. |
no-empty-font-face | โ | Disallow empty @font-face declaration blocks that contain no descriptors. |
no-font-face-in-media-query | โ | Disallow @font-face blocks nested inside @media, @supports, or @container at-rules. |
no-font-face-in-selectors | โ | Disallow @font-face rules nested inside regular CSS selectors. |
no-generic-family-in-font-face | โ | Disallow CSS generic family keywords as font-family descriptor values inside @font-face blocks. |
no-http-font-url | โ | Disallow plain http:// URLs in @font-face src declarations. |
no-invalid-font-display | โ | Disallow invalid font-display descriptor values in @font-face blocks. |
no-invalid-font-style | โ | Disallow invalid font-style descriptor values in @font-face blocks. |
no-invalid-font-weight | โ | Disallow invalid font-weight descriptor values in @font-face blocks. |
no-invalid-unicode-range | โ | Disallow invalid unicode-range descriptor values in @font-face blocks. |
no-legacy-formats | ๐ง | Disallow legacy @font-face formats (eot, svg, truetype) in modern projects. |
no-local-src-in-font-face | โ | Disallow local() references in @font-face src declarations. |
no-missing-fallback-before-web-font | โ | Disallow web-font-first font-family stacks that omit a fallback family. |
no-missing-font-file | โ | Disallow local @font-face src:url(...) paths that do not resolve to an existing font file on disk. |
no-overlapping-unicode-range | โ | Disallow overlapping unicode-range subsets across @font-face blocks that share the same family/style/weight tuple. |
no-protocol-relative-font-url | โ | Disallow protocol-relative URLs (//) in @font-face src declarations. |
no-src-format-mismatch | โ | Disallow @font-face src entries where the URL file extension contradicts the explicit format() hint. |
no-unquoted-font-family-in-font-face | ๐ง | Require the font-family descriptor value inside @font-face to be quoted. |
no-unused-font-face | โ | Disallow @font-face blocks whose font-family name is never referenced in any font-family declaration. |
no-whitespace-in-unquoted-family | ๐ง | Disallow unquoted whitespace-containing font-family names. |
prefer-variable-fonts | โ | Prefer variable-font workflows when the same family defines many static @font-face weight variants. |
prefer-woff2 | โ | Prefer including a woff2 source in every @font-face src list. |
require-font-display | ๐ง | Require font-display in every @font-face declaration block. |
require-font-family-in-font-face | โ | Require a font-family descriptor in every @font-face declaration block. |
require-font-style | ๐ง | Require explicit font-style in every @font-face block. |
require-font-weight | ๐ง | Require explicit font-weight in every @font-face block. |
require-format-hint | ๐ง | Require format(...) hints for url(...) sources in @font-face src values. |
require-src-in-font-face | โ | Require a src descriptor in every @font-face declaration block. |
require-system-font-fallback | ๐ง | Require regular selector font-family stacks to end with a system fallback. |
require-unicode-range-for-large-family | โ | Require unicode-range for families that define four or more @font-face blocks in the same file. |
require-unicode-range-for-subset-fonts | โ | Require unicode-range when @font-face src URLs appear to target script/language subsets (for example latin, cyrillic, japanese). |
woff2-before-woff | ๐ง | Require woff2 entries to appear before woff entries in @font-face src. |