help during development by showing typescript errors for the whole project

This commit is contained in:
Athou
2024-09-11 14:44:02 +02:00
parent 6634cfb991
commit f3b806686d
3 changed files with 425 additions and 13 deletions

View File

@@ -2,11 +2,11 @@ import { lingui } from "@lingui/vite-plugin"
import react from "@vitejs/plugin-react"
import { visualizer } from "rollup-plugin-visualizer"
import { defineConfig } from "vite"
import biomePlugin from "vite-plugin-biome"
import checker from "vite-plugin-checker"
import tsconfigPaths from "vite-tsconfig-paths"
// https://vitejs.dev/config/
export default defineConfig(env => ({
export default defineConfig(() => ({
plugins: [
react({
babel: {
@@ -17,9 +17,11 @@ export default defineConfig(env => ({
lingui(),
tsconfigPaths(),
visualizer(),
biomePlugin({
mode: "check",
failOnError: env.mode !== "development",
checker({
typescript: true,
biome: {
command: "check",
},
}),
],
base: "./",