text: /* eslint-disable prettier/prettier */
  // eslint-disable-next-line no-undef
  module.exports = {
    env: {
      browser: true,
      jest: true,
      es6: true,
    },
    root: true,
    parser: "@typescript-eslint/parser",
    parserOptions: {
      ecmaVersion: 2020,
      sourceType: "module",
      ecmaFeatures: {
        jsx: true,
      },
    },
    plugins: ["@typescript-eslint", "react", "jest", "react-hooks"],
    extends: [
      "eslint:recommended",
      "plugin:import/recommended",
      "plugin:import/typescript",
      "plugin:react/recommended",
      "plugin:react-hooks/recommended",
      "plugin:@typescript-eslint/recommended",
      "plugin:json/recommended",
      "prettier",
      "plugin:prettier/recommended",
    ],
    rules: {
      "@typescript-eslint/ban-ts-comment": "off",
      "@typescript-eslint/ban-ts-ignore": "off",
      "react/react-in-jsx-scope": "off",
      "react/prop-types": "off",
      "react/jsx-filename-extension": [
        1,
        {
          extensions: [".ts", ".tsx"],
        },
      ],
      "import/no-unresolved": [
        0,
        {
          caseSensitive: true,
        },
      ],
      "no-restricted-imports": [
        "error",
        {
          patterns: ["@mui/*/*/*", "!@mui/material/test-utils/*"],
        },
      ],
      "@typescript-eslint/no-unused-vars": 2,
      "prettier/prettier": "error",
    },
    settings: {
      react: {
        version: "detect",
      },
      "import/resolver": {
        node: {
          extensions: [".ts", ".tsx", ".json", "md"],
        },
      },
    },
  };
  