Skip to content

Commit 347b5b1

Browse files
authored
Merge pull request #670 from db-ui/refactor-stylinelint-not-lint-config-on-every-run
refactor(stylinelint): not lint config on every run
2 parents feb97ee + ea666cb commit 347b5b1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.config/.lintstagedrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"*.md": "markdownlint -c .markdown-lint.yml",
3-
"*.{css,scss}": "stylelint --fix",
3+
".stylelintrc.*": "stylelint --validate --allow-empty-input",
4+
"stylelint.config.*": "stylelint --validate --allow-empty-input",
5+
"*.{css,scss}": "stylelint --fix --no-validate",
46
"*.{js,ts,tsx}": "xo --fix"
57
}

.stylelintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build/
22
source/_patterns/**
3+
.stylelintrc.json

0 commit comments

Comments
 (0)