Skip to content

Commit 1281b93

Browse files
committed
chore: update outdated prettier script
1 parent d41bb69 commit 1281b93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"preview": "astro preview",
1010
"sync": "astro sync",
1111
"astro": "astro",
12-
"format:check": "prettier --plugin-search-dir=. --check .",
13-
"format": "prettier --plugin-search-dir=. --write .",
12+
"format:check": "prettier --check . --plugin=prettier-plugin-astro",
13+
"format": "prettier --write . --plugin=prettier-plugin-astro",
1414
"cz": "cz",
1515
"prepare": "husky install",
1616
"lint": "eslint ."
@@ -57,7 +57,7 @@
5757
},
5858
"lint-staged": {
5959
"*.{js,jsx,ts,tsx,md,mdx,json,astro}": [
60-
"prettier --plugin-search-dir=. --write"
60+
"prettier --write --plugin=prettier-plugin-astro"
6161
]
6262
}
6363
}

0 commit comments

Comments
 (0)