module.exports = { extends: ['eslint:recommended'], parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint', 'prettier'], root: true, rules: { 'prettier/prettier': 'warn', 'prefer-arrow-callback': 'error', 'sort-imports': [ 'error', { ignoreDeclarationSort: true, }, ], }, overrides: [ { files: ['**/*.ts'], extends: [ 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', ], parserOptions: { project: ['./tsconfig.json'], }, rules: { '@typescript-eslint/explicit-module-boundary-types': 'error', }, }, { files: ['.eslintrc.js', 'jest.config.js', 'prettier.config.js'], env: { node: true, browser: false, }, rules: { '@typescript-eslint/no-var-requires': 'off', }, }, ], }