Files
jobtrackingapp/job-tracker-ui/eslint.config.mjs
T
2026-08-30 00:19:51 +02:00

36 lines
973 B
JavaScript

import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTypeScript from "eslint-config-next/typescript";
export default defineConfig([
...nextVitals,
...nextTypeScript,
{
rules: {
"@typescript-eslint/no-explicit-any": "off",
"react-hooks/set-state-in-effect": "off",
"react-hooks/immutability": "off",
"react-hooks/refs": "off",
"react-hooks/use-memo": "off",
"react-hooks/purity": "off",
"@next/next/no-page-custom-font": "off",
"@next/next/no-img-element": "off",
},
},
{
files: ["**/*.test.{ts,tsx}", "e2e/**/*.{ts,tsx}", "src/setupTests.ts"],
rules: {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-require-imports": "off",
"react/display-name": "off",
},
},
globalIgnores([
".next/**",
"out/**",
"build/**",
"coverage/**",
"next-env.d.ts",
]),
]);