chore: add code quality tooling

This commit is contained in:
MythEclipse
2026-05-13 15:20:43 +07:00
parent 29cb2c20c6
commit 2676998411
3 changed files with 31 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
{
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"includes": ["src/**/*.ts", "tests/**/*.ts", "*.json", "*.ts"]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"includes": ["src/**/*.ts", "tests/**/*.ts", "*.json", "*.ts"]
}
}
+8 -2
View File
@@ -5,7 +5,11 @@
"main": "src/index.ts",
"scripts": {
"dev": "bun --watch src/index.ts",
"start": "bun src/index.ts"
"start": "bun src/index.ts",
"typecheck": "tsc --noEmit",
"lint": "biome check .",
"format": "biome format --write .",
"test": "vitest run"
},
"dependencies": {
"@discordjs/opus": "^0.10.0",
@@ -24,9 +28,11 @@
"ws": "^8.20.1"
},
"devDependencies": {
"@biomejs/biome": "latest",
"@types/bun": "latest",
"@types/express": "^5.0.6",
"@types/fluent-ffmpeg": "^2.1.28",
"@types/ws": "^8.18.1"
"@types/ws": "^8.18.1",
"vitest": "latest"
}
}
+8
View File
@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
include: ['tests/**/*.test.ts']
}
});