Skip to content

Commit 0cf6869

Browse files
committed
chore: update tooling and switch to biome
1 parent bdff8eb commit 0cf6869

13 files changed

+774
-3160
lines changed

.eslintrc

Lines changed: 0 additions & 18 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
bun lint && bun run build && bun run test
4+
bun check && bun run build && bun run test

.prettierrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"npm.packageManager": "bun",
3+
"editor.formatOnSave": true,
4+
"biome.enabled": true,
5+
"eslint.enable": false,
6+
"prettier.enable": false,
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll": "explicit",
9+
"source.organizeImports.biome": "explicit"
10+
},
11+
"typescript.tsdk": "node_modules/typescript/lib"
12+
}

biome.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"files": {
4+
"ignore": ["node_modules", "coverage", ".pnpm-store"]
5+
},
6+
"formatter": {
7+
"enabled": true,
8+
"formatWithErrors": false,
9+
"indentStyle": "space",
10+
"indentWidth": 2,
11+
"lineEnding": "lf",
12+
"lineWidth": 120,
13+
"attributePosition": "auto"
14+
},
15+
"organizeImports": {
16+
"enabled": true
17+
},
18+
"linter": {
19+
"enabled": true,
20+
"rules": {
21+
"recommended": true
22+
}
23+
},
24+
"javascript": {
25+
"formatter": {
26+
"jsxQuoteStyle": "double",
27+
"quoteProperties": "asNeeded",
28+
"trailingCommas": "none",
29+
"semicolons": "asNeeded",
30+
"arrowParentheses": "always",
31+
"bracketSpacing": true,
32+
"bracketSameLine": false,
33+
"quoteStyle": "single",
34+
"attributePosition": "auto"
35+
}
36+
}
37+
}

bun.lock

Lines changed: 698 additions & 0 deletions
Large diffs are not rendered by default.

bun.lockb

-159 KB
Binary file not shown.

package.json

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,50 +23,36 @@
2323
"types": "./dist/filelogger.d.ts"
2424
}
2525
},
26-
"keywords": [
27-
"tinyhttp",
28-
"node.js",
29-
"web framework",
30-
"web",
31-
"backend"
32-
],
26+
"keywords": ["tinyhttp", "node.js", "web framework", "web", "backend"],
3327
"author": "v1rtl",
3428
"license": "MIT",
35-
"files": [
36-
"dist"
37-
],
29+
"files": ["dist"],
3830
"dependencies": {
3931
"colorette": "^2.0.20",
40-
"dayjs": "^1.11.10",
32+
"dayjs": "^1.11.13",
4133
"http-status-emojis": "^2.2.0"
4234
},
4335
"scripts": {
4436
"build": "tsc",
4537
"test": "tsx tests/index.test.ts",
4638
"test:coverage": "c8 tsx --test tests/index.test.ts",
4739
"test:report": "c8 report --reporter=text-lcov > lcov.info",
48-
"lint": "eslint . --ext=ts",
49-
"format": "prettier --check \"./**/*.{ts,md}\"",
50-
"format:fix": "prettier --write \"./**/*.{ts,md}\"",
40+
"check": "biome check",
41+
"check:fix": "biome check --write",
5142
"prepare": "husky install"
5243
},
5344
"devDependencies": {
54-
"@commitlint/cli": "^18.2.0",
55-
"@commitlint/config-conventional": "^18.1.0",
56-
"@tinyhttp/app": "^2.2.0",
57-
"@types/node": "^20.8.9",
58-
"@typescript-eslint/eslint-plugin": "^6.9.0",
59-
"@typescript-eslint/parser": "^6.9.0",
60-
"bun-types": "^1.0.7",
45+
"@biomejs/biome": "^1.9.4",
46+
"@commitlint/cli": "^18.6.1",
47+
"@commitlint/config-conventional": "^18.6.3",
48+
"@tinyhttp/app": "^2.5.2",
49+
"@types/node": "^20.17.22",
50+
"bun-types": "^1.2.4",
6151
"c8": "^8.0.1",
62-
"eslint": "^8.52.0",
63-
"eslint-config-prettier": "^9.0.0",
64-
"eslint-plugin-prettier": "^5.0.1",
6552
"expect": "^29.7.0",
6653
"husky": "^8.0.3",
67-
"prettier": "^3.0.3",
6854
"supertest-fetch": "^1.5.0",
6955
"tsx": "^3.14.0",
70-
"typescript": "^5.2.2"
56+
"typescript": "^5.8.2"
7157
}
7258
}

0 commit comments

Comments
 (0)