text: module.exports = {
    extends: ['eslint-config-ns-ts'],
    rules: {
      'class-methods-use-this': 0,
      'import/extensions': 0,
      'sort-keys': 0,
      'react/prop-types': 0,
      '@typescript-eslint/interface-name-prefix': [
        2,
        {
          prefixWithI: 'always',
          allowUnderscorePrefix: true,
        },
      ],
      '@typescript-eslint/no-use-before-define': 0,
    },
    overrides: [
      {
        files: [
          'jest.setup.ts',
          '*.test.ts',
          '*.test.tsx',
          '.storybook',
          '**/__stories__/**/*.ts',
          '**/__stories__/**/*.tsx',
          'cypress/**/*.js',
          'cypress/**/*.ts',
        ],
        rules: {
          'import/no-extraneous-dependencies': 0,
          '@typescript-eslint/explicit-function-return-type': 0,
          '@typescript-eslint/no-explicit-any': 0,
          '@typescript-eslint/no-var-requires': 0,
        },
      },
      {
        files: ['@types/**/*.ts'],
        rules: {
          '@typescript-eslint/no-explicit-any': 0,
        },
      },
      {
        files: ['cypress/**/*.test.ts'],
        globals: {
          cy: true, // cypress
        },
        rules: {
          // because jest is not used in cypress test files
          'jest/valid-expect': 0,
          'jest/expect-expect': 0,
        },
      },
    ],
    settings: {
      'import/resolver': {
        node: {
          extensions: ['.js', '.jsx', '.ts', '.tsx', 'd.ts'],
        },
      },
      react: {
        version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
      },
    },
  }
  