Skip to content

fix: include CSS/SCSS files in lefthook stylelint glob#1981

Open
lunasilvestre wants to merge 1 commit intoNASA-IMPACT:mainfrom
lunasilvestre:fix/lefthook-stylelint-glob
Open

fix: include CSS/SCSS files in lefthook stylelint glob#1981
lunasilvestre wants to merge 1 commit intoNASA-IMPACT:mainfrom
lunasilvestre:fix/lefthook-stylelint-glob

Conversation

@lunasilvestre
Copy link
Copy Markdown

Related Ticket: N/A

Description of Changes

The stylelint pre-commit hook glob only matched *.{js,ts,jsx,tsx}, so staging .scss or .css files would skip the stylelint check entirely. Added scss and css extensions to the glob pattern.

Notes & Questions About Changes

  • The yarn lint:css script already covers .scss files via its own glob patterns — this fix ensures the pre-commit hook actually triggers for stylesheet changes

Validation / Testing

  • Lefthook config reloaded automatically on commit (sync hooks: ✔️)

The stylelint pre-commit hook only matched JS/TS files, so changes to
.scss or .css files in src/styles/ would skip the stylelint check
entirely. Add scss and css extensions to the glob pattern.
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 13, 2026

👷 Deploy request for veda-ui pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 2f5a2b5

@lunasilvestre lunasilvestre marked this pull request as ready for review May 2, 2026 11:35
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