generated from Klectr/KTemplate
build: add vite plugin checker
this throws ts errors if any found in project so were not missing anything
This commit is contained in:
parent
fee06527a8
commit
f9d0315bd7
@ -32,6 +32,7 @@
|
||||
"typescript": "^5.0.2",
|
||||
"typescript-eslint": "^8.11.0",
|
||||
"vite": "^5.0.0",
|
||||
"vite-plugin-checker": "^0.8.0",
|
||||
"vite-plugin-eslint": "^1.8.1",
|
||||
"vite-plugin-kaioken": "^0.13.1"
|
||||
},
|
||||
|
@ -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({
|
||||
@ -8,13 +9,16 @@ export default defineConfig({
|
||||
kaioken(),
|
||||
eslint({
|
||||
cache: true,
|
||||
exclude: ["src-tauri/**/*"],
|
||||
ignorePatterns: ["src-tauri"],
|
||||
emitError: true,
|
||||
emitWarning: true,
|
||||
failOnError: false,
|
||||
failOnWarning: false,
|
||||
lintOnStart: true,
|
||||
}),
|
||||
checker({
|
||||
typescript: true,
|
||||
}),
|
||||
],
|
||||
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user