Skip to content

Commit d2df982

Browse files
committed
feat: prettier add
1 parent 3f65f2a commit d2df982

File tree

5 files changed

+36
-14
lines changed

5 files changed

+36
-14
lines changed

.prettierignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Dependency directories
2+
node_modules/
3+
4+
# Output directories
5+
dist/
6+
7+
# vscode workspace files
8+
*.code-workspace
9+
10+
# all yaml files
11+
**/*.yaml
12+
13+
14+
# add .chglog template file
15+
.chglog/CHANGELOG.tpl.md

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": true,
4+
"printWidth": 110,
5+
"trailingComma": "all",
6+
"semi": false,
7+
"singleQuote": true
8+
}

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"cSpell.words": ["bumpp", "devgauravjatt", "libsql", "neondatabase", "tsdown", "Turso", "xcopy"],
33
"editor.formatOnSave": true,
4-
"editor.defaultFormatter": "biomejs.biome"
4+
"editor.codeActionsOnSave": {
5+
"source.organizeImports.biome": "explicit",
6+
"source.fixAll.biome": "explicit"
7+
}
58
}

biome.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,27 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
66
"useIgnoreFile": true,
77
"defaultBranch": "main"
88
},
99
"files": {
10-
"ignoreUnknown": false,
11-
"ignore": [".chglog/*", "pnpm-lock.yaml", "pnpm-workspace.yaml"]
10+
"ignoreUnknown": true,
11+
"includes": ["src/**/*", "package.json", "biome.json", "templates/**/*"]
1212
},
1313
"formatter": {
14-
"enabled": true,
15-
"indentStyle": "tab",
16-
"lineWidth": 110,
17-
"indentWidth": 4
18-
},
19-
"organizeImports": {
20-
"enabled": true
14+
"enabled": false
2115
},
16+
2217
"linter": {
2318
"enabled": true,
2419
"rules": {
2520
"recommended": true,
2621
"style": {
2722
"noNonNullAssertion": "off"
2823
}
29-
},
30-
"ignore": ["templates"]
24+
}
3125
},
3226
"javascript": {
3327
"formatter": {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,19 @@
4545
"start": "node ./dist/index.js",
4646
"build": "tsdown",
4747
"lint": "biome lint",
48+
"format": "prettier . --write",
4849
"changelog": "git-chglog -o CHANGELOG.md",
4950
"release": "pnpm build && pnpm copy-templates && pnpm publish",
5051
"copy-templates": "xcopy \"templates\" \"dist\\templates\" /E /I /Y",
5152
"link": "pnpm run build && pnpm copy-templates && pnpm link"
5253
},
5354
"devDependencies": {
54-
"@biomejs/biome": "~2.0.6",
55+
"@biomejs/biome": "^2.0.6",
5556
"@types/fs-extra": "^11.0.4",
5657
"@types/node": "^22.15.34",
5758
"drizzle-kit": "latest",
5859
"drizzle-orm": "latest",
60+
"prettier": "^3.6.2",
5961
"tsdown": "latest",
6062
"typescript": "^5.8.3"
6163
},

0 commit comments

Comments
 (0)