diff --git a/.changeset/quiet-plums-confess.md b/.changeset/quiet-plums-confess.md new file mode 100644 index 0000000..f34ed1a --- /dev/null +++ b/.changeset/quiet-plums-confess.md @@ -0,0 +1,5 @@ +--- +'@commencis/starter-react-vite': patch +--- + +fix(prettier): prevent error when no files match glob pattern diff --git a/package.json b/package.json index e61d71e..6f49d94 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "lint:fix:js": "eslint . --fix", "lint:check:css": "stylelint **/*.{css,scss}", "lint:fix:css": "stylelint **/*.{css,scss} --fix", - "lint:check:format": "prettier **/*.{json,md} --check", - "lint:fix:format": "prettier **/*.{json,md} --write", + "lint:check:format": "prettier \"**/*.{json,md}\" --check", + "lint:fix:format": "prettier \"**/*.{json,md}\" --write", "lint": "pnpm run \"/^lint:check:.*/\"", "lint:fix": "pnpm run \"/^lint:fix:.*/\"", "test": "vitest run",