Skip to content

Commit

Permalink
fix(lint-staged): enable --allow-empty-input for stylelint (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Aug 14, 2022
1 parent ba40131 commit 6f6022a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/breezy-sloths-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@1stg/lint-staged": patch
---

fix: enable `--allow-empty-input` for `stylelint`
2 changes: 1 addition & 1 deletion packages/lint-staged/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (isEslintAvailable) {

if (isStylelintAvailable) {
config[`*.{${STYLELINT_PRETTIER_FILES}}`] = [
'stylelint --cache --fix',
'stylelint --allow-empty-input --cache --fix',
...(useStylelintPrettier ? [] : ['prettier --write']),
]
}
Expand Down

0 comments on commit 6f6022a

Please sign in to comment.