|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + parser: '@typescript-eslint/parser', |
| 4 | + parserOptions: { |
| 5 | + ecmaVersion: 'latest', |
| 6 | + sourceType: 'module', |
| 7 | + project: [ |
| 8 | + './tsconfig.json', |
| 9 | + './types/tsconfig.json', |
| 10 | + './runtimes/tsconfig.json', |
| 11 | + './chat-client-ui-types/tsconfig.json', |
| 12 | + ], |
| 13 | + tsconfigRootDir: __dirname, |
| 14 | + }, |
| 15 | + plugins: ['@typescript-eslint'], |
| 16 | + extends: [ |
| 17 | + 'eslint:recommended', |
| 18 | + 'plugin:@typescript-eslint/eslint-recommended', |
| 19 | + 'plugin:@typescript-eslint/recommended-requiring-type-checking', |
| 20 | + 'plugin:@typescript-eslint/recommended', |
| 21 | + 'plugin:prettier/recommended', |
| 22 | + ], |
| 23 | + rules: { |
| 24 | + eqeqeq: 'error', |
| 25 | + '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }], |
| 26 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 27 | + '@typescript-eslint/no-explicit-any': 'off', |
| 28 | + '@typescript-eslint/no-non-null-assertion': 'error', |
| 29 | + '@typescript-eslint/no-unsafe-assignment': 'off', |
| 30 | + '@typescript-eslint/no-unsafe-member-access': 'off', |
| 31 | + '@typescript-eslint/no-redundant-type-constituents': 'error', |
| 32 | + '@typescript-eslint/unbound-method': 'error', |
| 33 | + '@typescript-eslint/no-misused-promises': 'warn', |
| 34 | + '@typescript-eslint/no-unsafe-return': 'off', |
| 35 | + '@typescript-eslint/no-unsafe-call': 'error', |
| 36 | + '@typescript-eslint/no-unsafe-argument': 'off', |
| 37 | + '@typescript-eslint/restrict-template-expressions': 'error', |
| 38 | + '@typescript-eslint/no-duplicate-type-constituents': 'error', |
| 39 | + '@typescript-eslint/no-floating-promises': 'error', |
| 40 | + 'prettier/prettier': 'off', |
| 41 | + }, |
| 42 | +} |
0 commit comments