Skip to content

Commit 8e74e5f

Browse files
authored
fix(lint-staged): use negative pattern correctly (#8842)
Negative patterns must start with the `!`, not just contain it. This is why YAML files were not formatted since 6184aff.
1 parent cc5f564 commit 8e74e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lint-staged.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
"*.!{js,jsx,ts,tsx,css,scss}": "prettier --ignore-unknown --write",
2+
"!*.{js,jsx,ts,tsx,css,scss}": "prettier --ignore-unknown --write",
33
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
44
"*.{css,scss}": ["stylelint --fix --allow-empty-input", "prettier --write"],
55
};

0 commit comments

Comments
 (0)