|
| 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/recommended-type-checked |
| 33 | + - plugin:jest/recommended |
| 34 | + |
| 35 | +rules: |
| 36 | + { |
| 37 | + 'camelcase': 'off', |
| 38 | + 'eslint-comments/no-use': 'off', |
| 39 | + 'eslint-comments/no-unused-disable': 'off', |
| 40 | + 'i18n-text/no-en': 'off', |
| 41 | + 'import/no-namespace': 'off', |
| 42 | + 'no-console': 'off', |
| 43 | + 'semi': 'off', |
| 44 | + '@typescript-eslint/array-type': 'error', |
| 45 | + '@typescript-eslint/consistent-type-assertions': 'error', |
| 46 | + '@typescript-eslint/explicit-member-accessibility': |
| 47 | + ['error', { 'accessibility': 'no-public' }], |
| 48 | + '@typescript-eslint/explicit-function-return-type': |
| 49 | + ['error', { 'allowExpressions': true }], |
| 50 | + '@typescript-eslint/no-empty-interface': 'error', |
| 51 | + '@typescript-eslint/no-extraneous-class': 'error', |
| 52 | + '@typescript-eslint/no-inferrable-types': 'error', |
| 53 | + '@typescript-eslint/no-non-null-assertion': 'warn', |
| 54 | + '@typescript-eslint/no-unnecessary-qualifier': 'error', |
| 55 | + '@typescript-eslint/no-useless-constructor': 'error', |
| 56 | + '@typescript-eslint/no-var-requires': 'error', |
| 57 | + '@typescript-eslint/prefer-for-of': 'warn', |
| 58 | + '@typescript-eslint/prefer-function-type': 'warn', |
| 59 | + '@typescript-eslint/prefer-includes': 'error', |
| 60 | + '@typescript-eslint/prefer-string-starts-ends-with': 'error', |
| 61 | + '@typescript-eslint/promise-function-async': 'error', |
| 62 | + '@typescript-eslint/require-array-sort-compare': 'error', |
| 63 | + '@typescript-eslint/space-before-function-paren': 'off' |
| 64 | + } |
0 commit comments