mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 19:41:02 +08:00
chore: update outdated prettier script
This commit is contained in:
+3
-3
@@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user