agenthub/frontend/eslint.config.mjs

19 lines
573 B
JavaScript

import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
{
rules: {
// The console deliberately fetches on mount and hydrates one value from
// localStorage; both call setState in an effect body on purpose.
"react-hooks/set-state-in-effect": "off",
},
},
globalIgnores([".next/**", "out/**", "build/**", "next-env.d.ts"]),
]);
export default eslintConfig;