text: const fs = require("fs");
  
  module.exports = {
    root: true,
    env: {
      node: true,
      es6: true,
    },
    extends: ["eslint:recommended", "plugin:prettier/recommended"],
    parserOptions: {
      parser: "babel-eslint",
      ecmaVersion: 2020,
    },
    rules: {
      "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
      "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
      "no-unused-vars": ["error", { argsIgnorePattern: "next" }],
      "prettier/prettier": ["warn", fs.readFileSync(".prettierrc.json")],
    },
    overrides: [
      {
        files: [
          "**/__tests__/*.{j,t}s?(x)",
          "**/tests/unit/**/*.spec.{j,t}s?(x)",
        ],
        env: {
          jest: true,
        },
      },
    ],
  };
  