From 48be6bad5dee26327089278d1a16ea0ac1cc9a52 Mon Sep 17 00:00:00 2001 From: rare-magma Date: Thu, 12 Oct 2023 12:56:07 +0200 Subject: [PATCH] test: disable loading eslint() plugin Signed-off-by: rare-magma --- vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 42d7fd0..ed243d4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,9 +1,9 @@ -import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; import eslint from "vite-plugin-eslint"; import { VitePWA } from "vite-plugin-pwa"; -export default defineConfig(() => { +export default defineConfig((env) => { return { build: { outDir: "build", @@ -13,7 +13,7 @@ export default defineConfig(() => { }, plugins: [ react(), - eslint(), + env.mode !== "test" && eslint(), VitePWA({ manifest: { theme_color: "#282a36",