25 lines
757 B
JavaScript
25 lines
757 B
JavaScript
|
|
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
|
||
|
|
import nextTypescript from "eslint-config-next/typescript";
|
||
|
|
|
||
|
|
// Diese Regeln sind als Tech-Debt markiert: sie sollen sichtbar bleiben (warn),
|
||
|
|
// aber CI nicht rot machen, solange der bestehende Code sie noch verletzt.
|
||
|
|
// Wenn die offenen Faelle nach und nach gefixt sind: hier wieder auf "error" hochziehen.
|
||
|
|
const techDebtWarnings = {
|
||
|
|
"react-hooks/set-state-in-effect": "warn",
|
||
|
|
"react-hooks/preserve-manual-memoization": "warn",
|
||
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
||
|
|
};
|
||
|
|
|
||
|
|
const config = [
|
||
|
|
{
|
||
|
|
ignores: [".next/**", "node_modules/**", "out/**", "public/**"],
|
||
|
|
},
|
||
|
|
...nextCoreWebVitals,
|
||
|
|
...nextTypescript,
|
||
|
|
{
|
||
|
|
rules: techDebtWarnings,
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
export default config;
|