Skip to content

Commit a7c0e07

Browse files
committed
🔨 Refactor Code: clean and move to biome
1 parent 9c2e844 commit a7c0e07

17 files changed

+399
-65
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ node_modules/
33

44
# Output directories
55
dist/
6+
7+
# vscode workspace files
8+
*.code-workspace

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"cSpell.words": ["libsql", "neondatabase", "Turso"]
2+
"cSpell.words": ["devgauravjatt", "libsql", "neondatabase", "tsdown", "Turso"],
3+
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "biomejs.biome"
35
}

biome.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true,
7+
"defaultBranch": "main"
8+
},
9+
"files": {
10+
"ignoreUnknown": false,
11+
"ignore": ["pnpm-lock.yaml", "pnpm-workspace.yaml"]
12+
},
13+
"formatter": {
14+
"enabled": true,
15+
"indentStyle": "tab",
16+
"lineWidth": 180,
17+
"indentWidth": 4
18+
},
19+
"organizeImports": {
20+
"enabled": true
21+
},
22+
"linter": {
23+
"enabled": true,
24+
"rules": {
25+
"recommended": true,
26+
"style": {
27+
"noNonNullAssertion": "off"
28+
}
29+
},
30+
"ignore": ["templates"]
31+
},
32+
"javascript": {
33+
"formatter": {
34+
"quoteStyle": "single",
35+
"semicolons": "asNeeded"
36+
}
37+
}
38+
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,21 @@
3535
},
3636
"license": "MIT",
3737
"type": "module",
38-
"files": [
39-
"dist"
40-
],
38+
"files": ["dist"],
4139
"main": "./dist/index.js",
4240
"module": "./dist/index.js",
4341
"bin": "./dist/index.js",
4442
"scripts": {
4543
"start": "node ./dist/index.js",
4644
"build": "tsdown",
45+
"lint": "biome lint",
46+
"format": "biome format --write",
4747
"dev": "bun src/index.ts",
4848
"copy-templates": "xcopy \"templates\" \"dist\\templates\" /E /I /Y",
4949
"link": "bun run build && bun copy-templates && bun link"
5050
},
5151
"devDependencies": {
52+
"@biomejs/biome": "1.9.4",
5253
"@types/fs-extra": "^11.0.4",
5354
"@types/node": "^22.15.30",
5455
"drizzle-kit": "^0.31.1",

0 commit comments

Comments
 (0)