|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + parser: '@typescript-eslint/parser', |
| 4 | + parserOptions: { |
| 5 | + ecmaVersion: 2022, |
| 6 | + sourceType: 'module', |
| 7 | + project: './tsconfig.json', |
| 8 | + }, |
| 9 | + plugins: ['@typescript-eslint'], |
| 10 | + extends: [ |
| 11 | + 'eslint:recommended', |
| 12 | + 'plugin:@typescript-eslint/recommended', |
| 13 | + 'plugin:@typescript-eslint/recommended-requiring-type-checking', |
| 14 | + ], |
| 15 | + env: { |
| 16 | + node: true, |
| 17 | + es2022: true, |
| 18 | + }, |
| 19 | + rules: { |
| 20 | + // Championship rules - strict but sensible |
| 21 | + // TODO: Upgrade these from 'warn' to 'error' after proper type safety refactor |
| 22 | + '@typescript-eslint/no-explicit-any': 'warn', |
| 23 | + '@typescript-eslint/no-unsafe-assignment': 'warn', |
| 24 | + '@typescript-eslint/no-unsafe-member-access': 'warn', |
| 25 | + '@typescript-eslint/no-unsafe-call': 'warn', |
| 26 | + '@typescript-eslint/no-unsafe-return': 'warn', |
| 27 | + '@typescript-eslint/no-unsafe-argument': 'warn', |
| 28 | + '@typescript-eslint/require-await': 'warn', |
| 29 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 30 | + '@typescript-eslint/no-unused-vars': ['error', { |
| 31 | + argsIgnorePattern: '^_', |
| 32 | + varsIgnorePattern: '^_' |
| 33 | + }], |
| 34 | + '@typescript-eslint/no-floating-promises': 'error', |
| 35 | + '@typescript-eslint/no-misused-promises': 'error', |
| 36 | + 'no-console': 'off', // We use console for MCP logging |
| 37 | + }, |
| 38 | + ignorePatterns: [ |
| 39 | + 'dist/**', |
| 40 | + 'node_modules/**', |
| 41 | + '**/*.test.ts', |
| 42 | + 'jest.config.js', |
| 43 | + ], |
| 44 | +}; |
0 commit comments