Installs, configures, and customizes Workleap's shared Stylelint config for CSS. Covers rule customization, Prettier integration, Turborepo setup, and VS Code linting configuration.
Ships in wl-web-configs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
@workleap/stylelint-configs provides Stylelint configurations for CSS linting. Uses Prettier for stylistic rules via stylelint-prettier plugin.
No SCSS support: The library does not provide Sass rules. Use native CSS nesting instead.
pnpm add -D @workleap/stylelint-configs stylelint prettier
pnpm add -D @workleap/stylelint-configs stylelint prettier turbo
pnpm add -D @workleap/stylelint-configs
{
"$schema": "https://json.schemastore.org/stylelintrc",
"extends": "@workleap/stylelint-configs"
}
**/dist/*
node_modules
storybook-static
!.storybook
stylelint-prettier formats CSS with Prettier, while oxfmt formats the rest of the code and ignores CSS. Prettier does not read oxfmt.config.ts, so add a CSS-scoped config with the same options at the root (workspace root for Turborepo):
// .prettierrc.json5
{
$schema: "https://json.schemastore.org/prettierrc",
overrides: [
{
files: "*.css",
options: {
printWidth: 150,
tabWidth: 4,
useTabs: false,
singleQuote: false,
endOfLine: "lf"
}
}
]
}
Do NOT add a .prettierignore that ignores everything except CSS (* / !**/*.css): oxfmt also reads .prettierignore and would skip every file, and * also ignores folders, so Prettier skips the CSS files in subfolders. If a project already has one, remove it (or remove its CSS-only patterns) and rely on .prettierrc.json5 instead.
{
"$schema": "https://json.schemastore.org/stylelintrc",
"extends": "@workleap/stylelint-configs",
"rules": {
"color-hex-length": null
}
}
{
"$schema": "https://json.schemastore.org/stylelintrc",
"extends": "@workleap/stylelint-configs",
"rules": {
"max-nesting-depth": [2, { "severity": "error" }]
}
}
{
"$schema": "https://json.schemastore.org/stylelintrc",
"extends": "@workleap/stylelint-configs",
"rules": {
"unit-allowed-list": ["rem"]
}
}
{
"$schema": "https://json.schemastore.org/stylelintrc",
"plugins": ["stylelint-order"],
"extends": "@workleap/stylelint-configs",
"rules": {
"order/properties-order": ["width", "height"]
}
}
{
"lint:stylelint": "stylelint \"**/*.css\" --cache --cache-location node_modules/.cache/stylelint"
}
{
"lint": "turbo run lint --continue"
}
{
"stylelint": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-location node_modules/.cache/stylelint --max-warnings=0"
}
// turbo.json
{
"$schema": "https://turbo.build/schema.json",
"ui": "tui",
// .prettierrc.json5 configures Stylelint in every project: a change to it must run Stylelint again everywhere.
"globalDependencies": [".prettierrc.json5"],
"tasks": {
"lint": { "dependsOn": ["stylelint"] },
"stylelint": { "outputs": ["node_modules/.cache/stylelint"] }
}
}
For consistent indentation across Prettier and VS Code:
# .editorconfig
root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
[*.md]
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2
Install EditorConfig.EditorConfig VS Code extension.
Install stylelint.vscode-stylelint extension.
// .vscode/settings.json
{
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"css.validate": false,
"scss.validate": false
}
.prettierrc.json5, never with a * / !**/*.css .prettierignore (it breaks oxfmt and hides CSS in subfolders)What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/workleap-browserslist-configWorkleap's shared Browserslist config (`@workleap/browserslist-config`). Use when adding or customizing a `.browserslistrc` in a project that uses `@workleap/browserslist-config`, adding custom browser targets, listing the supported browser versions, or deciding whether a project (application vs library) should include Browserslist at all.
/workleap-chromatic-best-practicesWorkleap's Chromatic best practices for snapshot cost control and CI optimization. Use when auditing, setting up, or fixing Chromatic configurations — including TurboSnap-disabling patterns, CI workflows, chromatic.config.json, and monorepo setups. Also activate when reviewing PRs that touch Storybook or Chromatic-related files.
/workleap-Other plugins' skills for the same job
/wl-web-configs:workleap-stylelint-configsfrom wl-web-configs
npx claudepluginhub workleap/wl-web-configs --plugin wl-web-configs