Skip to content

Add stylelint kit - #246

Open
kristiyan-velkov wants to merge 1 commit into
docker:mainfrom
kristiyan-velkov:add-stylelint-kit
Open

Add stylelint kit#246
kristiyan-velkov wants to merge 1 commit into
docker:mainfrom
kristiyan-velkov:add-stylelint-kit

Conversation

@kristiyan-velkov

Copy link
Copy Markdown

Summary

  • Add a stylelint mixin that installs Stylelint v16.26.1 and stylelint-config-standard v39.0.0 from npm (version-pinned).
  • Wrapper uses the project's Stylelint config when present; otherwise --config /usr/local/share/stylelint/config.mjs (extends stylelint-config-standard).
  • Install-time allowlist is only registry.npmjs.org — no browser, no apt.

Spec choices worth flagging for review

  • Stylelint 16.26.1, not 17.x. 17.x requires Node ≥ 20.19; templates only guarantee Node ≥ 18. 16.26.1 is the last 16.x (Node ≥ 18.12); config-standard 39.0.0 is the last config that peers stylelint@^16.
  • Fallback config only applies when the workspace has no stylelint.config.* / .stylelintrc* and the caller did not pass --config.

Origin

New frontend-tool mixin, patterned on vale/ (one-concern CLI) and lighthouse/ (npm pin).

Test plan

  • ./scripts/test-kit.sh stylelint passes (the TCK)
  • ./scripts/test-kit-e2e.sh stylelint passes under deny-all
  • Manual smoke: sbx run --kit ./stylelint/ claude then stylelint --version and stylelint "**/*.css"

Made with Cursor

Pin the last 16.x line so the kit runs on Node 18 agent templates.

Signed-off-by: kristiyan.velkov <christiyanweb@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@kristiyan-velkov
kristiyan-velkov requested a review from a team as a code owner August 27, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant