Skip to content

Commit

Permalink
fix(lint-staged): use negative pattern correctly (#8842)
Browse files Browse the repository at this point in the history
Negative patterns must start with the `!`, not just contain it. This is
why YAML files were not formatted since 6184aff.
  • Loading branch information
caugner authored May 11, 2023
1 parent cc5f564 commit 8e74e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
"*.!{js,jsx,ts,tsx,css,scss}": "prettier --ignore-unknown --write",
"!*.{js,jsx,ts,tsx,css,scss}": "prettier --ignore-unknown --write",
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
"*.{css,scss}": ["stylelint --fix --allow-empty-input", "prettier --write"],
};

0 comments on commit 8e74e5f

Please sign in to comment.