Stylelint Config Validator

# stylelint-config-validator

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Stylelint Config Validator" with this command: npx skills add charlie-morrison/stylelint-config-validator

stylelint-config-validator

Validate Stylelint configuration files for correctness, deprecated rules, and best practices.

What it does

Checks .stylelintrc / .stylelintrc.json / .stylelintrc.yaml for:

  • Rules — unknown rules, deprecated rules (70+ deprecated in Stylelint 16), null values, many disabled rules
  • Config structure — unknown config keys, extends/plugins arrays, override validation
  • Deprecated rules — blacklist→disallowed-list renames, removed formatting rules (use Prettier instead)
  • Extends — duplicate entries, prettier config ordering (must be last)
  • Plugins — duplicates, plugin-prefixed rules without declared plugins
  • Overrides — missing files property, deprecated rules in overrides

Rules (20+)

CategoryRulesExamples
Config structure (4)Unknown keys, invalid types, no rules or extends, invalid defaultSeveritycustomConfig: true → unknown key
Rules validation (5)Deprecated rules (70+), unknown rules, null values, disabled rule ratioindentation: 2 → deprecated in v16
Extends (3)Duplicate entries, non-array type, prettier orderingprettier before standard → wrong order
Plugins (3)Duplicate plugins, non-array type, plugin rules without pluginsscss/no-dollar-variables without plugin
Overrides (3)Non-array type, missing files, deprecated rules in overridesOverride without files property
Ignore files (1)Catch-all patternsignoreFiles: "*" matches everything

Output formats

  • text — human-readable with severity icons (❌ ⚠️ ℹ️)
  • json — structured with summary counts
  • summary — one-line PASS/WARN/FAIL

Exit codes

  • 0 — no errors
  • 1 — errors found (or --strict with any issue)
  • 2 — file not found or parse error

Commands

lint / validate

Full config validation.

python3 scripts/stylelint_validator.py lint .stylelintrc.json
python3 scripts/stylelint_validator.py validate --format json .stylelintrc

rules

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

Options

OptionValuesDefaultDescription
--formattext, json, summarytextOutput format
--min-severityerror, warning, infoinfoFilter by minimum severity
--strictflagoffExit 1 on any issue

Requirements

  • Python 3.8+
  • No external dependencies (pure stdlib)

Examples

# 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Multi Edge-TTS CN

Edge-TTS 在线语音合成 skill。基于微软 Edge TTS 引擎,生成速度快(1-2秒),支持多种音色和输出格式。同时支持飞书(OGG/Opus)和企业微信(AMR)。默认音色 xiaoxiao_lively。需联网。

Registry SourceRecently Updated
General

vedic-destiny

吠陀命盘分析中文入口。用于完整命盘研判、命主盘 Rashi chart 与九分盘 Navamsha chart 联读、既往事件回看、出生时间稳定度判断、事业主题、婚姻主题、时空盘专题,以及基于 Jagannatha Hora PDF、星盘截图或文本命盘数据的系统拆盘。当用户提到完整星盘、事业方向、婚姻问题、关系窗...

Registry SourceRecently Updated
General

One Person Company OS

Build a visual operating cockpit for an AI-native one-person company across promise, buyer, product, delivery, cash, learning, and assets. / 为 AI 一人公司建立可视化经营...

Registry SourceRecently Updated
General

健康追踪

健康追踪技能 - 追踪饮水、睡眠、步数等健康数据,JSON存储。

Registry SourceRecently Updated