Skip to content

chore: add stylelint with recess-order and enable it in CI - #3

Merged
NoNamer777 merged 4 commits into
mainfrom
chore/add-stylelint
Jul 31, 2026
Merged

chore: add stylelint with recess-order and enable it in CI#3
NoNamer777 merged 4 commits into
mainfrom
chore/add-stylelint

Conversation

@NoNamer777

Copy link
Copy Markdown
Member

Summary

  • Add .stylelintrc.json using stylelint-config-standard-scss, extended with stylelint-config-recess-order for a consistent property order
  • Add the lint-css script (stylelint "**/*.scss") to package.json
  • Run stylelint --fix via lint-staged for *.scss files (alongside prettier -w)
  • Un-comment and enable the previously TODO'd "Run Stylelint" step in the CI action
  • Recommend the Stylelint VS Code extension, add a lint-css VS Code task, and a WebStorm run configuration
  • Document Stylelint editor setup and the lint-css script in the README

Test plan

  • pnpm lint-css passes locally (no errors)
  • Verified recess-order actually flags out-of-order properties and is auto-fixable
  • pnpm format-check and pnpm lint-ts still pass
  • git commit ran successfully through the updated lint-staged config (prettier + stylelint --fix)

Lints .scss files with stylelint-config-standard-scss and enforces a
consistent property order via stylelint-config-recess-order. Also
wires stylelint --fix into lint-staged and enables the previously
stubbed Stylelint step in CI.
@NoNamer777
NoNamer777 merged commit 8f82088 into main Jul 31, 2026
1 check passed
@NoNamer777
NoNamer777 deleted the chore/add-stylelint branch July 31, 2026 20:49
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