Skip to content

Commit fe00aca

Browse files
committed
chore(deps): add prettier
1 parent 0a9d500 commit fe00aca

File tree

3 files changed

+147
-19
lines changed

3 files changed

+147
-19
lines changed

2025/.prettierrc.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// .prettierrc.mjs
2+
/** @type {import("prettier").Config} */
3+
export default {
4+
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
5+
tailwindStylesheet: "src/styles/global.css",
6+
tailwindConfig: "tailwind.config.ts",
7+
overrides: [
8+
{
9+
files: "*.astro",
10+
options: {
11+
parser: "astro",
12+
},
13+
},
14+
{
15+
files: "*.svelte",
16+
options: {
17+
parser: "svelte",
18+
},
19+
},
20+
],
21+
};
22+

2025/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"astro": "astro",
1212
"check": "astro check",
1313
"lint": "eslint --cache .",
14-
"format": "nr lint --fix"
14+
"format": "nr lint --fix",
15+
"prettier:check": "prettier --cache --check --plugin-search-dir=. src",
16+
"prettier:fix": "prettier --cache --write --plugin-search-dir=. src"
1517
},
1618
"dependencies": {
1719
"@astrojs/react": "^4.2.0",
@@ -34,6 +36,9 @@
3436
"eslint": "^9.20.1",
3537
"eslint-plugin-astro": "^1.3.1",
3638
"eslint-plugin-format": "^1.0.1",
39+
"prettier": "^3.5.3",
40+
"prettier-plugin-astro": "^0.14.1",
41+
"prettier-plugin-tailwindcss": "^0.6.11",
3742
"sharp": "^0.33.5",
3843
"tailwind-merge": "^3.3.0",
3944
"typescript": "^5.7.3",

2025/pnpm-lock.yaml

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

0 commit comments

Comments
 (0)