π¦ ClawHub
Stylelint Config Validator
by @charlie-morrison
Validate Stylelint config files for errors, deprecated rules, config structure, plugins, extends, and overrides, outputting text or JSON results.
π‘ Examples
# Quick check
python3 scripts/stylelint_validator.py lint .stylelintrc.jsonCI pipeline
python3 scripts/stylelint_validator.py lint --strict --format summary .stylelintrcFind deprecated rules to upgrade
python3 scripts/stylelint_validator.py deprecated .stylelintrc.jsonJSON output for tooling
python3 scripts/stylelint_validator.py validate --format json .stylelintrc.yaml
βοΈ Configuration
| Option | Values | Default | Description |
|--------|--------|---------|-------------|
| --format | text, json, summary | text | Output format |
| --min-severity | error, warning, info | info | Filter by minimum severity |
| --strict | flag | off | Exit 1 on any issue |
π Constraints
Check rules only (deprecated, unknown, conflicts).
python3 scripts/stylelint_validator.py rules .stylelintrc.json
deprecated
List only deprecated rules in the config.
python3 scripts/stylelint_validator.py deprecated .stylelintrc.json
TERMINAL
clawhub install stylelint-config-validator