Skip to content

Commit 405d2f3

Browse files
committed
format: add prettier
1 parent c5d529f commit 405d2f3

20 files changed

+3033
-1086
lines changed

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"semi": false,
6+
"printWidth": 100,
7+
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
8+
"pluginSearchDirs": false
9+
}

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"recommendations": ["astro-build.astro-vscode"],
3-
"unwantedRecommendations": []
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
44
}

.vscode/launch.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"command": "./node_modules/.bin/astro dev",
6-
"name": "Development server",
7-
"request": "launch",
8-
"type": "node-terminal"
9-
}
10-
]
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
1111
}

astro.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { defineConfig } from "astro/config";
1+
import { defineConfig } from 'astro/config'
22

3-
import tailwind from "@astrojs/tailwind";
3+
import tailwind from '@astrojs/tailwind'
44

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

package.json

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
{
2-
"name": "shortcut",
3-
"type": "module",
4-
"version": "0.0.1",
5-
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev",
8-
"build": "astro check && astro build",
9-
"preview": "astro preview",
10-
"astro": "astro"
11-
},
12-
"dependencies": {
13-
"@astrojs/check": "^0.3.1",
14-
"@astrojs/tailwind": "^5.0.2",
15-
"astro": "^3.5.0",
16-
"astro-icon": "^0.8.1",
17-
"tailwindcss": "^3.0.24",
18-
"typescript": "^5.2.2"
19-
},
20-
"devDependencies": {
21-
"daisyui": "^3.9.4"
22-
}
23-
}
2+
"name": "shortcut",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro check && astro build",
9+
"preview": "astro preview",
10+
"astro": "astro"
11+
},
12+
"dependencies": {
13+
"@astrojs/check": "^0.3.1",
14+
"@astrojs/tailwind": "^5.0.2",
15+
"astro": "^3.5.0",
16+
"astro-icon": "^0.8.1",
17+
"tailwindcss": "^3.0.24",
18+
"typescript": "^5.2.2"
19+
},
20+
"devDependencies": {
21+
"daisyui": "^3.9.4",
22+
"prettier": "^3.1.0",
23+
"prettier-plugin-astro": "^0.12.2",
24+
"prettier-plugin-tailwindcss": "^0.5.7"
25+
}
26+
}

0 commit comments

Comments
 (0)