Skip to content

Commit 79fb12f

Browse files
authored
Merge pull request #744 from DuendeSoftware/mb/so-pretty
Update Prettier config to support Astro/Starlight components
2 parents 63587b5 + 1709661 commit 79fb12f

File tree

4 files changed

+59
-4
lines changed

4 files changed

+59
-4
lines changed

.prettierrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// .prettierrc.mjs
2+
/** @type {import("prettier").Config} */
3+
export default {
4+
plugins: ["prettier-plugin-astro"],
5+
overrides: [
6+
{
7+
files: "*.astro",
8+
options: {
9+
parser: "astro",
10+
},
11+
},
12+
],
13+
};

package-lock.json

Lines changed: 44 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"@types/node": "^22.15.18",
5454
"@types/react": "^19.1.4",
5555
"node-fetch": "^3.3.2",
56-
"prettier": "3.5.3"
56+
"prettier": "3.5.3",
57+
"prettier-plugin-astro": "^0.14.1"
5758
},
5859
"volta": {
5960
"node": "22.15.0"

0 commit comments

Comments
 (0)