module.exports = { parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 2022, sourceType: 'module', project: './tsconfig.json', }, plugins: ['@typescript-eslint', 'prettier'], extends: [ 'eslint:recommended', '@typescript-eslint/recommended', '@typescript-eslint/recommended-requiring-type-checking', 'prettier', ], rules: { 'prettier/prettier': 'error', '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], '@typescript-eslint/explicit-function-return-type': 'warn', '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-non-null-assertion': 'warn', '@typescript-eslint/prefer-const': 'error', '@typescript-eslint/no-var-requires': 'error', 'no-console': 'warn', 'no-debugger': 'error', 'prefer-const': 'error', 'no-var': 'error', }, env: { node: true, es2022: true, jest: true, }, ignorePatterns: [ 'dist/', 'node_modules/', 'coverage/', '*.js', '*.d.ts', ], };