chore: update outdated prettier script

This commit is contained in:
satnaing
2024-01-22 11:57:33 +06:30
parent dcb320930b
commit f19279d8ba
+3 -3
View File
@@ -9,8 +9,8 @@
"preview": "astro preview", "preview": "astro preview",
"sync": "astro sync", "sync": "astro sync",
"astro": "astro", "astro": "astro",
"format:check": "prettier --plugin-search-dir=. --check .", "format:check": "prettier --check . --plugin=prettier-plugin-astro",
"format": "prettier --plugin-search-dir=. --write .", "format": "prettier --write . --plugin=prettier-plugin-astro",
"cz": "cz", "cz": "cz",
"prepare": "husky install", "prepare": "husky install",
"lint": "eslint ." "lint": "eslint ."
@@ -57,7 +57,7 @@
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,ts,tsx,md,mdx,json,astro}": [ "*.{js,jsx,ts,tsx,md,mdx,json,astro}": [
"prettier --plugin-search-dir=. --write" "prettier --write --plugin=prettier-plugin-astro"
] ]
} }
} }