Skip to content

Commit 7540bde

Browse files
mrTuomoKcursoragent
andcommitted
fix(components): use non-capturing group in lint-staged regex
Satisfy regexp/no-unused-capturing-group in CI without changing which SCSS paths are excluded from stylelint. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4fea508 commit 7540bde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/components/lint-staged.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const rules = {
3838
},
3939
'**/*.{css,scss}': (filenames) => {
4040
const stylelintFiles = filenames.filter(
41-
(f) => !/(^|\/)styles\//.test(f.replaceAll('\\', '/'))
41+
(f) => !/(?:^|\/)styles\//.test(f.replaceAll('\\', '/'))
4242
);
4343
if (stylelintFiles.length === 0) {
4444
return [];

0 commit comments

Comments
 (0)