Skip to content

Commit e9eae7e

Browse files
committed
chore(deps): add prettier-plugin-astro
1 parent 9eade29 commit e9eae7e

File tree

2 files changed

+60
-32
lines changed

2 files changed

+60
-32
lines changed

package-lock.json

Lines changed: 47 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
"mocha": "11.7.5",
164164
"npm-run-all2": "8.0.4",
165165
"prettier": "3.7.4",
166+
"prettier-plugin-astro": "0.14.1",
166167
"prettier-plugin-jsdoc": "1.8.0",
167168
"prettier-plugin-pkg": "0.21.2",
168169
"prettier-plugin-sort-json": "4.1.1",
@@ -215,6 +216,9 @@
215216
}
216217
},
217218
"lint-staged": {
219+
"*.astro": [
220+
"prettier --write"
221+
],
218222
"*.{ts,cts,js,cjs,yml,json5}": [
219223
"eslint --fix",
220224
"prettier --write",
@@ -238,7 +242,16 @@
238242
"prettier": {
239243
"jsdocCommentLineStrategy": "keep",
240244
"jsdocPreferCodeFences": true,
245+
"overrides": [
246+
{
247+
"files": "*.astro",
248+
"options": {
249+
"parser": "astro"
250+
}
251+
}
252+
],
241253
"plugins": [
254+
"prettier-plugin-astro",
242255
"prettier-plugin-jsdoc",
243256
"prettier-plugin-pkg",
244257
"prettier-plugin-sort-json"

0 commit comments

Comments
 (0)