@@ -298,6 +298,9 @@ Validate your Figma file structure against your PKL config before exporting:
298298# Lint with default rules
299299exfig lint -i exfig.pkl
300300
301+ # Add lint-only policies from a separate config
302+ exfig lint -i exfig.pkl --lint-config lint.pkl
303+
301304# Only check specific rules
302305exfig lint -i exfig.pkl --rules naming-convention,deleted-variables
303306
@@ -307,17 +310,18 @@ exfig lint -i exfig.pkl --format json --severity error
307310
308311### Available Rules
309312
310- | Rule | Severity | Description |
311- | -------------------------- | -------- | ------------------------------------------------------ |
312- | ` frame-page-match ` | error | Frame/page names in config exist in Figma file |
313- | ` naming-convention ` | error | Component names match ` nameValidateRegexp ` patterns |
314- | ` component-not-frame ` | error | Configured frames contain published components |
315- | ` duplicate-component-names ` | error | No duplicate component names in configured frames |
316- | ` deleted-variables ` | warning | No ` deletedButReferenced ` variables in collections |
317- | ` alias-chain-integrity ` | warning | Variable alias chains resolve without broken refs |
318- | ` dark-mode-variables ` | error | With ` variablesDarkMode ` , fills bound to Variables |
319- | ` dark-mode-suffix ` | warning | With ` suffixDarkMode ` , light components have dark pair |
320- | ` path-data-length ` | error | Icon SVG pathData within 32,767-byte AAPT limit |
313+ | Rule | Severity | Description |
314+ | --------------------------- | -------- | ------------------------------------------------------ |
315+ | ` frame-page-match ` | error | Frame/page names in config exist in Figma file |
316+ | ` naming-convention ` | error | Component names match ` nameValidateRegexp ` patterns |
317+ | ` component-not-frame ` | error | Configured frames contain published components |
318+ | ` duplicate-component-names ` | error | No duplicate component names in configured frames |
319+ | ` deleted-variables ` | warning | No ` deletedButReferenced ` variables in collections |
320+ | ` alias-chain-integrity ` | warning | Variable alias chains resolve without broken refs |
321+ | ` dark-mode-variables ` | error | With ` variablesDarkMode ` , fills bound to Variables |
322+ | ` dark-mode-suffix ` | warning | With ` suffixDarkMode ` , light components have dark pair |
323+ | ` path-data-length ` | error | Icon SVG pathData within 32,767-byte AAPT limit |
324+ | ` icon-color-variables ` | error | Icon paints use configured Figma Variables |
321325
322326## Help and Version
323327
0 commit comments