stylelint
Installation
SKILL.md
Stylelint
Commands
| Task | Command |
|---|---|
| Lint styles (via lint task) | pnpm lint |
| Lint only Stylelint | pnpm lint:stylelint |
| Lint a specific file | pnpm exec stylelint <path> |
| Lint with auto-fix | pnpm exec stylelint --fix <path> |
Default action: When asked to "lint styles" or "run Stylelint" without further qualification, prefer pnpm lint if it includes Stylelint, otherwise fall back to the dedicated Stylelint script.
Commands and glob patterns vary across projects. Always check
package.jsonscripts before running —pnpm lint:stylelintis the norm in some repos,pnpm stylelintin others.
Before linting — explore the project first
Before running or modifying Stylelint, read the project's config file (typically .stylelintrc or .stylelintrc.json) to understand: