chore: standardised the eslint config structure accross the project (#11814)

This commit is contained in:
Mridang Agarwalla
2026-03-12 11:02:52 +01:00
committed by GitHub
parent 621fd9bdec
commit 7cdee1703f
61 changed files with 1025 additions and 2011 deletions
+21
View File
@@ -0,0 +1,21 @@
import { fileURLToPath } from "url";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [tsconfigPaths(), react()],
resolve: {
alias: {
"server-only": fileURLToPath(
new URL("./test-mocks/server-only.ts", import.meta.url),
),
},
},
test: {
include: ["src/**/*.test.ts", "src/**/*.test.tsx", "tests/**/*.test.ts"],
exclude: ["**/*.integration.test.ts"],
environment: "jsdom",
setupFiles: ["./test-setup.ts"],
},
});