Skip to content

Commit

Permalink
Make prettier respect the .gitignore file as well
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Feb 25, 2025
1 parent 3388f4c commit 5b373ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"check-format": "prettier --ignore-path \"../.gitignore\" --check \"./**/*.{ts,tsx,json,astro,md,mdx,mjs,cjs}\"",
"check-format": "prettier --ignore-path \"../.gitignore\" --ignore-path .gitignore --check \"./**/*.{ts,tsx,json,astro,md,mdx,mjs,cjs}\"",
"format": "prettier --ignore-path \"../.gitignore\" --write \"./**/*.{ts,tsx,json,astro,md,mdx,mjs,cjs}\""
},
"dependencies": {
Expand Down

0 comments on commit 5b373ab

Please sign in to comment.