add vite plugin checker to throw ts errors in terminal
This commit is contained in:
parent
06094adbcc
commit
a644767cc0
@ -26,6 +26,7 @@
|
|||||||
"typescript": "^5.6.2",
|
"typescript": "^5.6.2",
|
||||||
"typescript-eslint": "^8.11.0",
|
"typescript-eslint": "^8.11.0",
|
||||||
"vite": "^5.4.8",
|
"vite": "^5.4.8",
|
||||||
|
"vite-plugin-checker": "^0.8.0",
|
||||||
"vite-plugin-eslint": "^1.8.1",
|
"vite-plugin-eslint": "^1.8.1",
|
||||||
"vite-plugin-kaioken": "^0.13.1"
|
"vite-plugin-kaioken": "^0.13.1"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { defineConfig } from "vite"
|
import { defineConfig } from "vite"
|
||||||
import kaioken from "vite-plugin-kaioken"
|
import kaioken from "vite-plugin-kaioken"
|
||||||
import eslint from "vite-plugin-eslint"
|
import eslint from "vite-plugin-eslint"
|
||||||
|
import checker from "vite-plugin-checker"
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -15,6 +16,9 @@ export default defineConfig({
|
|||||||
failOnWarning: false,
|
failOnWarning: false,
|
||||||
lintOnStart: true,
|
lintOnStart: true,
|
||||||
}),
|
}),
|
||||||
|
checker({
|
||||||
|
typescript: true,
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
esbuild: {
|
esbuild: {
|
||||||
jsxInject: `import * as kaioken from "kaioken"`,
|
jsxInject: `import * as kaioken from "kaioken"`,
|
||||||
|
Loading…
Reference in New Issue
Block a user