Skip to content

Commit 38cb8de

Browse files
authored
Merge pull request #1120 from db-ui/refactor-stylinelint-not-lint-config-on-every-run
refactor(stylinelint): not lint config on every run
2 parents 88f48d9 + bcfaf1d commit 38cb8de

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.config/.lintstagedrc.json

+3-1
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,jsx,mjs,cjs}": "xo --fix"
57
}

.stylelintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
source/fonts/**/sources
22
sources/**
33
source/pattern-template/_pattern-template.scss
4+
.stylelintrc.json

0 commit comments

Comments
 (0)