- Added React.useMemo to memoize chartData and chartOptions to prevent unnecessary re-renders. - Ensured chart zoom and pan states are maintained during interactions. - Improved performance and user experience by avoiding chart
30 lines
729 B
JSON
30 lines
729 B
JSON
{
|
|
"extends": [
|
|
"next",
|
|
"next/core-web-vitals",
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"plugins": ["@typescript-eslint", "react"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
"rules": {
|
|
// ✅ wirklich gefährliche Fehler
|
|
"no-undef": "error",
|
|
"no-unreachable": "error",
|
|
|
|
// ✅ alles andere nur als Warnung
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"@next/next/no-img-element": "warn",
|
|
"react/no-unescaped-entities": "warn"
|
|
}
|
|
}
|