chore(frontend): add eslint quality gate

This commit is contained in:
cesnimda
2026-08-30 00:19:51 +02:00
parent 7318b02e11
commit a74daa7aa4
21 changed files with 3729 additions and 82 deletions
+35
View File
@@ -0,0 +1,35 @@
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",
]),
]);