add vite plugin checker to throw ts errors in terminal

This commit is contained in:
Triston Armstrong 2024-10-25 11:17:01 +07:00
parent 06094adbcc
commit a644767cc0
Signed by: tristonarmstrong
GPG Key ID: A23B48AE45EB6EFE
3 changed files with 5 additions and 0 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -26,6 +26,7 @@
"typescript": "^5.6.2",
"typescript-eslint": "^8.11.0",
"vite": "^5.4.8",
"vite-plugin-checker": "^0.8.0",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-kaioken": "^0.13.1"
}

View File

@ -1,6 +1,7 @@
import { defineConfig } from "vite"
import kaioken from "vite-plugin-kaioken"
import eslint from "vite-plugin-eslint"
import checker from "vite-plugin-checker"
// https://vitejs.dev/config/
export default defineConfig({
@ -15,6 +16,9 @@ export default defineConfig({
failOnWarning: false,
lintOnStart: true,
}),
checker({
typescript: true,
}),
],
esbuild: {
jsxInject: `import * as kaioken from "kaioken"`,