Validate Stylelint configuration files for correctness, deprecated rules, and best practices.
Checks .stylelintrc / .stylelintrc.json / .stylelintrc.yaml for:
CategoryRulesExamplesConfig structure (4)Unknown keys, invalid types, no rules or extends, invalid defaultSeveritycustomConfig: true → unknown keyRules validation (5)Deprecated rules (70+), unknown rules, null values, disabled rule ratioindentation: 2 → deprecated in v16Extends (3)Duplicate entries, non-array type, prettier orderingprettier before standard → wrong orderPlugins (3)Duplicate plugins, non-array type, plugin rules without pluginsscss/no-dollar-variables without pluginOverrides (3)Non-array type, missing files, deprecated rules in overridesOverride without files propertyIgnore files (1)Catch-all patternsignoreFiles: "*" matches everything
0 — no errors1 — errors found (or --strict with any issue)2 — file not found or parse errorFull config validation.
bash
python3 scripts/stylelint_validator.py lint .stylelintrc.json
python3 scripts/stylelint_validator.py validate --format json .stylelintrc
Check rules only (deprecated, unknown, conflicts).
bash
python3 scripts/stylelint_validator.py rules .stylelintrc.json
List only deprecated rules in the config.
bash
python3 scripts/stylelint_validator.py deprecated .stylelintrc.json
OptionValuesDefaultDescription--formattext, json, summarytextOutput format--min-severityerror, warning, infoinfoFilter by minimum severity--strictflagoffExit 1 on any issue
bash
# Quick check
python3 scripts/stylelint_validator.py lint .stylelintrc.json
# CI pipeline
python3 scripts/stylelint_validator.py lint --strict --format summary .stylelintrc
# Find deprecated rules to upgrade
python3 scripts/stylelint_validator.py deprecated .stylelintrc.json
# JSON output for tooling
python3 scripts/stylelint_validator.py validate --format json .stylelintrc.yaml