Skip to content

Commit 61553b1

Browse files
committed
chore: add biome for linting and formatting
1 parent 9110614 commit 61553b1

File tree

16 files changed

+265
-745
lines changed

16 files changed

+265
-745
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install dependencies
3232
run: pnpm install --frozen-lockfile
3333

34-
- name: Lint
34+
- name: Lint and format check
3535
run: pnpm run lint
3636

3737
- name: Build

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
],
1515
"@semantic-release/github"
1616
]
17-
}
17+
}

biome.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space",
14+
"indentWidth": 2
15+
},
16+
"linter": {
17+
"enabled": true,
18+
"rules": {
19+
"recommended": true,
20+
"complexity": {
21+
"noExcessiveCognitiveComplexity": "off"
22+
},
23+
"correctness": {
24+
"noUnusedVariables": "error"
25+
},
26+
"style": {
27+
"useConst": "error",
28+
"useConsistentArrayType": "error"
29+
},
30+
"suspicious": {
31+
"noExplicitAny": "off"
32+
}
33+
}
34+
},
35+
"javascript": {
36+
"formatter": {
37+
"quoteStyle": "single",
38+
"semicolons": "always",
39+
"trailingCommas": "all"
40+
}
41+
},
42+
"assist": {
43+
"enabled": true,
44+
"actions": {
45+
"source": {
46+
"organizeImports": "on"
47+
}
48+
}
49+
}
50+
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"build": "tsc",
1212
"dev": "tsc --watch",
1313
"start": "node build/index.js",
14-
"lint": "eslint src/**/*.ts",
14+
"lint": "biome check .",
15+
"lint:fix": "biome check --write .",
16+
"format": "biome format --write .",
1517
"clean": "rm -rf build",
1618
"prepublishOnly": "npm run clean && npm run build",
1719
"dxt:build": "npm run clean && npm run build",
@@ -37,13 +39,11 @@
3739
},
3840
"devDependencies": {
3941
"@anthropic-ai/dxt": "^0.2.6",
42+
"@biomejs/biome": "^2.2.2",
4043
"@semantic-release/changelog": "^6.0.3",
4144
"@semantic-release/git": "^10.0.1",
4245
"@types/mime-types": "^2.1.4",
4346
"@types/node": "^22.10.5",
44-
"@typescript-eslint/eslint-plugin": "^8.18.2",
45-
"@typescript-eslint/parser": "^8.18.2",
46-
"eslint": "^9.17.0",
4747
"semantic-release": "^24.2.7",
4848
"typescript": "^5.7.3"
4949
},

0 commit comments

Comments
 (0)