import nextCoreWebVitals from "eslint-config-next/core-web-vitals"; import prettier from "eslint-config-prettier"; import reactHooks from "eslint-plugin-react-hooks"; import tseslint from "typescript-eslint"; export default [ { ignores: [ ".next/**", "out/**", "build/**", "next-env.d.ts", "public/sw.js", "public/workbox-*.js", "public/swe-worker-*.js", ], }, ...nextCoreWebVitals, { plugins: { "@typescript-eslint": tseslint.plugin, "react-hooks": reactHooks, }, rules: { "@typescript-eslint/no-unused-vars": "warn", "@typescript-eslint/no-unused-expressions": "warn", "react-hooks/immutability": "warn", "react-hooks/refs": "warn", "react-hooks/set-state-in-effect": "warn", }, }, prettier, ];