text: module.exports = {
    parser: '@typescript-eslint/parser',
    env: {
      es6: true,
      browser: true,
      jest: true,
    },
    extends: [
      'airbnb',
      'plugin:react/recommended',
      'plugin:@typescript-eslint/recommended',
      'plugin:prettier/recommended',
    ],
    plugins: [
      'react-hooks',
    ],
    parserOptions: {
      ecmaVersion: 2018,
      sourceType: 'module',
      ecmaFeatures: {
          jsx: true,
      },
    },
    rules: {
      'react/react-in-jsx-scope': 'off',
      // @typescript-eslint rules: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules
      indent: 'off',
      '@typescript-eslint/indent': ['error', 2],
      '@typescript-eslint/explicit-function-return-type': 'off',
      '@typescript-eslint/explicit-member-accessibility': 'off',
      'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
      '@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '[createElement]'}]
    },
    settings: {
      react: {
          version: 'detect',
      },
      'import/resolver': {
        'node': {
          'extensions': ['.js', '.jsx', '.ts', '.tsx'],
        }
      }
    },
  };
  