From 2f5a2b51715ad5a17a186ce355b0ae834d2e4c65 Mon Sep 17 00:00:00 2001 From: Nelson Luna Silvestre Date: Mon, 13 Apr 2026 16:06:41 +0100 Subject: [PATCH] fix: include CSS/SCSS files in lefthook stylelint glob 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. --- lefthook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index 60f7ec7b9..ce040fed7 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -8,5 +8,5 @@ pre-commit: glob: '*.{js,ts,jsx,tsx}' run: yarn eslint {staged_files} stylelint: - glob: '*.{js,ts,jsx,tsx}' + glob: '*.{js,ts,jsx,tsx,scss,css}' run: yarn lint:css {staged_files} \ No newline at end of file