text: module.exports = {
    parser: '@typescript-eslint/parser',
    plugins: ['@typescript-eslint', 'react', 'react-hooks', 'jsx-a11y', 'prettier'],
    extends: [
      'airbnb',
      'prettier',
      'prettier/react',
      'prettier/@typescript-eslint',
      'plugin:react/recommended',
      'plugin:@typescript-eslint/recommended',
      'plugin:import/errors',
      'plugin:import/warnings',
      'plugin:import/typescript',
    ],
    parserOptions: {
      ecmaVersion: 2018,
      sourceType: 'module',
      ecmaFeatures: {
        jsx: true,
      },
    },
    env: {
      es6: true,
      browser: true,
      node: true,
      commonjs: true,
      jest: true,
    },
    settings: {
      react: {
        version: 'detect',
      },
      'import/resolver': {
        alias: {
          map: [['~', './']],
          extensions: ['.ts', '.tsx', '.js', '.jsx'],
        },
      },
    },
    rules: {
      'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
      'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
      'global-require': 'off',
      'react-hooks/rules-of-hooks': 'error',
      'import/extensions': [
        'error',
        'ignorePackages',
        {
          js: 'never',
          jsx: 'never',
          ts: 'never',
          tsx: 'never',
        },
      ],
      'prettier/prettier': 'error',
      'react/prop-types': 'off',
      'react/jsx-props-no-spreading': 'off',
      'react/jsx-filename-extension': [
        'error',
        {
          extensions: ['.jsx', '.tsx'],
        },
      ],
      '@typescript-eslint/no-var-requires': 'off',
      '@typescript-eslint/no-explicit-any': 'off',
      '@typescript-eslint/member-delimiter-style': 'off',
    },
    overrides: [
      {
        files: ['**/*.js'],
        rules: {
          '@typescript-eslint/explicit-function-return-type': 'off',
        },
      },
      {
        files: ['lib/auth0/rules/*.js'],
        rules: {
          'no-param-reassign': 'off',
          semi: ['error', 'always'],
          '@typescript-eslint/no-unused-vars': 'off',
        },
        globals: {
          configuration: true,
          request: true,
          auth0: true,
        },
      },
    ],
  }
  