Skip to content

Commit 5e90d08

Browse files
committed
chore: update some more tooling
1 parent 0cf6869 commit 5e90d08

File tree

7 files changed

+92
-248
lines changed

7 files changed

+92
-248
lines changed

.husky/commit-msg

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

4-
bunx commitlint --config commitlint.config.cjs --edit "$1"
4+
bunx commitlint --config commitlint.config.mjs --edit "$1"

biome.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
33
"files": {
4-
"ignore": ["node_modules", "coverage", ".pnpm-store"]
4+
"ignore": ["node_modules", "coverage", ".pnpm-store", "dist"]
55
},
66
"formatter": {
77
"enabled": true,

bun.lock

+81-237
Large diffs are not rendered by default.

commitlint.config.cjs renamed to commitlint.config.mjs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// eslint-disable-next-line @typescript-eslint/no-var-requires
2-
const defaultConfig = require('@commitlint/config-conventional')
1+
import defaultConfig from '@commitlint/config-conventional'
32

4-
module.exports = {
3+
export default {
54
extends: ['@commitlint/config-conventional'],
65
rules: {
76
...defaultConfig.rules,

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
},
4444
"devDependencies": {
4545
"@biomejs/biome": "^1.9.4",
46-
"@commitlint/cli": "^18.6.1",
47-
"@commitlint/config-conventional": "^18.6.3",
46+
"@commitlint/cli": "^19.7.1",
47+
"@commitlint/config-conventional": "^19.7.1",
4848
"@tinyhttp/app": "^2.5.2",
4949
"@types/node": "^20.17.22",
5050
"bun-types": "^1.2.4",
51-
"c8": "^8.0.1",
51+
"c8": "^10.1.3",
5252
"expect": "^29.7.0",
5353
"husky": "^8.0.3",
54-
"supertest-fetch": "^1.5.0",
54+
"supertest-fetch": "^2.0.0",
5555
"tsx": "^3.14.0",
5656
"typescript": "^5.8.2"
5757
}

tests/index.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('Logger tests', () => {
111111
const server = app.listen()
112112
await makeFetch(server)('/')
113113
.expect(404)
114-
.then(async () => {
114+
.then<void, void>(async () => {
115115
assert.equal(await checkFileExists(filename), true)
116116
})
117117
.finally(async () => {

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"downlevelIteration": true,
99
"skipLibCheck": true,
1010
"outDir": "dist",
11-
"declaration": true
11+
"declaration": true,
12+
"lib": ["ESNext.Promise"]
1213
},
1314
"include": ["src"]
1415
}

0 commit comments

Comments
 (0)