Skip to content

Commit 5bafc09

Browse files
committed
refactor: prettier
1 parent 7595232 commit 5bafc09

17 files changed

+3195
-1225
lines changed

.prettierrc

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"semi": false,
3+
"arrowParens": "avoid",
4+
"singleQuote": true,
5+
"printWidth": 80,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"trailingComma": "es5",
9+
"bracketSpacing": true,
10+
"endOfLine": "lf",
11+
"plugins": [
12+
"prettier-plugin-astro",
13+
"prettier-plugin-svelte",
14+
"prettier-plugin-tailwindcss"
15+
],
16+
"overrides": [
17+
{
18+
"files": "*.astro",
19+
"options": {
20+
"parser": "astro"
21+
}
22+
},
23+
{ "files": "*.svelte", "options": { "parser": "svelte" } }
24+
]
25+
}

astro.config.mjs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { defineConfig } from 'astro/config';
2-
import tailwind from "@astrojs/tailwind";
1+
import { defineConfig } from 'astro/config'
2+
import tailwind from '@astrojs/tailwind'
33

4-
import svelte from "@astrojs/svelte";
4+
import svelte from '@astrojs/svelte'
55

66
// https://astro.build/config
77
export default defineConfig({
8-
integrations: [tailwind(), svelte()]
9-
});
8+
integrations: [tailwind(), svelte()],
9+
})

package.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"start": "astro dev",
88
"build": "astro check && astro build",
99
"preview": "astro preview",
10-
"astro": "astro"
10+
"astro": "astro",
11+
"format": "prettier --write ."
1112
},
1213
"dependencies": {
1314
"@astrojs/check": "^0.5.10",
@@ -21,5 +22,12 @@
2122
"tailwindcss": "^3.4.3",
2223
"typescript": "^5.4.5"
2324
},
24-
"packageManager": "[email protected]+sha1.44793e979f677db082fa49826446aad5aa4ee6b8"
25+
"packageManager": "[email protected]+sha1.44793e979f677db082fa49826446aad5aa4ee6b8",
26+
"devDependencies": {
27+
"@biomejs/biome": "^1.7.1",
28+
"prettier": "^3.2.5",
29+
"prettier-plugin-astro": "^0.13.0",
30+
"prettier-plugin-svelte": "^3.2.3",
31+
"prettier-plugin-tailwindcss": "^0.5.14"
32+
}
2533
}

0 commit comments

Comments
 (0)