eslint.config.mjs 536 B

12345678910111213141516171819202122
  1. import { dirname } from "path";
  2. import { fileURLToPath } from "url";
  3. import { FlatCompat } from "@eslint/eslintrc";
  4. const __filename = fileURLToPath(import.meta.url);
  5. const __dirname = dirname(__filename);
  6. const compat = new FlatCompat({
  7. baseDirectory: __dirname,
  8. });
  9. const eslintConfig = [
  10. ...compat.extends("next/core-web-vitals", "next/typescript"),
  11. {
  12. rules: {
  13. "@typescript-eslint/no-unused-vars": "off",
  14. "react-hooks/exhaustive-deps": "warn"
  15. }
  16. }
  17. ];
  18. export default eslintConfig;