module.exports = { parser: '@typescript-eslint/parser', // Specifies the ESLint parser extends: [ 'airbnb-base', 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin 'plugin:jest/recommended', ], parserOptions: { ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features sourceType: 'module', // Allows for the use of imports }, rules: { 'no-console': 'off', 'import/extensions': [ 'error', 'ignorePackages', { js: 'never', jsx: 'never', ts: 'never', tsx: 'never', }, ], 'no-multiple-empty-lines': [ 'error', { max: 2, maxEOF: 1, }, ], 'no-shadow': 'off', // Turn off regular no-shadow since it causes false positives with enums '@typescript-eslint/no-shadow': ['error'], // Turn on TS specific no-shadow }, settings: { 'import/resolver': { node: { extensions: ['.js', '.jsx', '.ts', '.tsx'], moduleDirectory: ['node_modules', 'src/'], }, }, }, plugins: ['jest'], overrides: [ { files: [ '*.js', '*.jsx', ], rules: { '@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/explicit-function-return-type': 'off', }, }, ], ignorePatterns: [ 'dist/', 'tmp/', ], };