diff options
| author | Amir Zarrinkafsh <nightah@me.com> | 2023-08-25 18:28:05 +1000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-25 18:28:05 +1000 | 
| commit | e69e3886c68cf5ea7998d6d4ee65be3535c847e6 (patch) | |
| tree | cb59da89fbfb5ebd76f8a54d2bfbfbb77beee1a8 /web/vite.config.ts | |
| parent | d241a371dc08eac07123b5e41eff3751da56e69d (diff) | |
ci(web): replace vite-plugin-eslint with vite-plugin-checker (#5904)
This change replaces the existing ESLint plugin which also provides capability to perform additional checking, including TypeScript.
Signed-off-by: Amir Zarrinkafsh <nightah@me.com>
Diffstat (limited to 'web/vite.config.ts')
| -rw-r--r-- | web/vite.config.ts | 14 | 
1 files changed, 10 insertions, 4 deletions
diff --git a/web/vite.config.ts b/web/vite.config.ts index 28cfb1da7..feda27c21 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -1,6 +1,6 @@  import react from "@vitejs/plugin-react";  import { defineConfig } from "vite"; -import eslintPlugin from "vite-plugin-eslint"; +import checkerPlugin from "vite-plugin-checker";  import istanbul from "vite-plugin-istanbul";  import svgr from "vite-plugin-svgr";  import tsconfigPaths from "vite-tsconfig-paths"; @@ -51,11 +51,17 @@ export default defineConfig(({ mode }) => {              },              environment: "happy-dom",              globals: true, -            onConsoleLog(log) { -                if (log.includes('No routes matched location "blank"')) return false; +            onConsoleLog() { +                return false;              },              setupFiles: ["src/setupTests.ts"],          }, -        plugins: [eslintPlugin({ cache: false }), istanbulPlugin, react(), svgr(), tsconfigPaths()], +        plugins: [ +            checkerPlugin({ eslint: { lintCommand: "eslint . --ext .js,.jsx,.ts,.tsx" }, typescript: true }), +            istanbulPlugin, +            react(), +            svgr(), +            tsconfigPaths(), +        ],      };  });  | 
