text: module.exports = {
    root: true,
    env: {
      node: true,
      browser: true,
      es6: true,
    },
    globals: {
      window: true,
      console: true,
      NODE_ENV: true,
      describe: true,
      test: true,
      expect: true,
      beforeEach: true,
    },
    extends: [
      'eslint:recommended',
      'plugin:import/errors',
      'plugin:import/warnings',
      'plugin:import/typescript',
      'plugin:@typescript-eslint/eslint-recommended',
      'plugin:@typescript-eslint/recommended',
      'plugin:jest/recommended',
    ],
    rules: {
      'arrow-parens': [2, 'as-needed', { requireForBlockBody: false }],
      'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
      'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
      'no-param-reassign': 0,
      'no-plusplus': 0,
      'no-restricted-syntax': ['error', 'LabeledStatement', 'WithStatement'],
      'no-underscore-dangle': 0,
      'no-nested-ternary': 0,
      'object-curly-newline': 0,
      'no-continue': 0,
      'consistent-return': 0,
      'no-use-before-define': 0,
      'no-restricted-globals': ['error', 'fdescribe'],
      'func-names': ['error', 'never', { generators: 'never' }],
      'comma-dangle': [
        'error',
        {
          arrays: 'always-multiline',
          objects: 'always-multiline',
          imports: 'always-multiline',
          exports: 'always-multiline',
          functions: 'ignore',
        },
      ],
      '@typescript-eslint/no-explicit-any': 'off',
    },
    parser: '@typescript-eslint/parser',
    parserOptions: {
      sourceType: 'module',
      ecmaVersion: 11,
    },
  };
  