From 8e74e5fb0518d8b140a41a965e71ab267e11bef5 Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Thu, 11 May 2023 19:51:28 +0200 Subject: [PATCH] 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 6184affef801d9425d60a667579d17a2135a16f0. --- lint-staged.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lint-staged.config.js b/lint-staged.config.js index d7e5d2118e33..4598631bd52a 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -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"], };