2025-12-21 21:59:26 +01:00
|
|
|
import eslint from "@eslint/js";
|
|
|
|
|
import tseslint from "typescript-eslint";
|
|
|
|
|
import reactHooks from "eslint-plugin-react-hooks";
|
2025-12-21 21:58:41 +01:00
|
|
|
|
|
|
|
|
export default tseslint.config(
|
|
|
|
|
eslint.configs.recommended,
|
|
|
|
|
...tseslint.configs.recommended,
|
|
|
|
|
{
|
|
|
|
|
plugins: {
|
2025-12-21 21:59:26 +01:00
|
|
|
"react-hooks": reactHooks,
|
2025-12-21 21:58:41 +01:00
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
...reactHooks.configs.recommended.rules,
|
2025-12-21 21:59:26 +01:00
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
|
"error",
|
|
|
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
2025-12-21 21:58:41 +01:00
|
|
|
],
|
|
|
|
|
// Downgrade to warnings - existing patterns use these
|
2025-12-21 21:59:26 +01:00
|
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
|
|
|
"react-hooks/set-state-in-effect": "off",
|
2025-12-21 21:58:41 +01:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-12-21 21:59:26 +01:00
|
|
|
ignores: [".next/**", "node_modules/**", "app/generated/**"],
|
2025-12-21 21:58:41 +01:00
|
|
|
}
|
|
|
|
|
);
|