|
| 1 | +env: |
| 2 | + node: true |
| 3 | + es6: true |
| 4 | + jest: true |
| 5 | + |
| 6 | +globals: |
| 7 | + Atomics: readonly |
| 8 | + SharedArrayBuffer: readonly |
| 9 | + |
| 10 | +ignorePatterns: |
| 11 | + - '!.*' |
| 12 | + - '**/node_modules/.*' |
| 13 | + - '**/dist/.*' |
| 14 | + - '**/coverage/.*' |
| 15 | + - '*.json' |
| 16 | + |
| 17 | +parser: '@typescript-eslint/parser' |
| 18 | + |
| 19 | +parserOptions: |
| 20 | + ecmaVersion: 2023 |
| 21 | + sourceType: module |
| 22 | + project: |
| 23 | + - './.github/linters/tsconfig.json' |
| 24 | + - './tsconfig.json' |
| 25 | + |
| 26 | +plugins: |
| 27 | + - jest |
| 28 | + - '@typescript-eslint' |
| 29 | + |
| 30 | +extends: |
| 31 | + - eslint:recommended |
| 32 | + - plugin:@typescript-eslint/eslint-recommended |
| 33 | + - plugin:@typescript-eslint/recommended |
| 34 | + - sentry |
| 35 | + - plugin:jest/recommended |
| 36 | + |
| 37 | +rules: |
| 38 | + { |
| 39 | + 'camelcase': 'off', |
| 40 | + 'eslint-comments/no-use': 'off', |
| 41 | + 'eslint-comments/no-unused-disable': 'off', |
| 42 | + 'i18n-text/no-en': 'off', |
| 43 | + 'import/no-namespace': 'off', |
| 44 | + 'no-console': 'off', |
| 45 | + 'no-unused-vars': 'off', |
| 46 | + 'semi': 'off', |
| 47 | + '@typescript-eslint/array-type': 'error', |
| 48 | + '@typescript-eslint/await-thenable': 'error', |
| 49 | + '@typescript-eslint/ban-ts-comment': 'error', |
| 50 | + '@typescript-eslint/consistent-type-assertions': 'error', |
| 51 | + '@typescript-eslint/explicit-member-accessibility': |
| 52 | + ['error', {'accessibility': 'no-public'}], |
| 53 | + '@typescript-eslint/explicit-function-return-type': |
| 54 | + ['error', {'allowExpressions': true}], |
| 55 | + '@typescript-eslint/func-call-spacing': ['error', 'never'], |
| 56 | + '@typescript-eslint/no-array-constructor': 'error', |
| 57 | + '@typescript-eslint/no-empty-interface': 'error', |
| 58 | + '@typescript-eslint/no-explicit-any': 'error', |
| 59 | + '@typescript-eslint/no-extraneous-class': 'error', |
| 60 | + '@typescript-eslint/no-for-in-array': 'error', |
| 61 | + '@typescript-eslint/no-inferrable-types': 'error', |
| 62 | + '@typescript-eslint/no-misused-new': 'error', |
| 63 | + '@typescript-eslint/no-namespace': 'error', |
| 64 | + '@typescript-eslint/no-non-null-assertion': 'warn', |
| 65 | + '@typescript-eslint/no-require-imports': 'error', |
| 66 | + '@typescript-eslint/no-unnecessary-qualifier': 'error', |
| 67 | + '@typescript-eslint/no-unnecessary-type-assertion': 'error', |
| 68 | + '@typescript-eslint/no-unused-vars': 'error', |
| 69 | + '@typescript-eslint/no-useless-constructor': 'error', |
| 70 | + '@typescript-eslint/no-var-requires': 'error', |
| 71 | + '@typescript-eslint/prefer-for-of': 'warn', |
| 72 | + '@typescript-eslint/prefer-function-type': 'warn', |
| 73 | + '@typescript-eslint/prefer-includes': 'error', |
| 74 | + '@typescript-eslint/prefer-string-starts-ends-with': 'error', |
| 75 | + '@typescript-eslint/promise-function-async': 'off', |
| 76 | + '@typescript-eslint/require-array-sort-compare': 'error', |
| 77 | + '@typescript-eslint/restrict-plus-operands': 'error', |
| 78 | + '@typescript-eslint/semi': ['off', 'never'], |
| 79 | + '@typescript-eslint/space-before-function-paren': 'off', |
| 80 | + '@typescript-eslint/type-annotation-spacing': 'error', |
| 81 | + '@typescript-eslint/unbound-method': 'error', |
| 82 | + } |
0 commit comments