text: module.exports = {
    root: true,
    env: {
      node: true,
      es6: true,
    },
    extends: [
      "eslint:recommended",
      "plugin:react/recommended",
      "plugin:react-hooks/recommended",
      "plugin:prettier/recommended",
    ],
    plugins: ["react", "react-hooks", "prettier"],
    parserOptions: {
      parser: "babel-eslint",
      ecmaVersion: 2018,
      sourceType: "module",
      ecmaFeatures: {
        jsx: true,
      },
    },
    rules: {
      "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
      "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
    },
    settings: {
      react: {
        version: "detect",
      },
    },
  };
  