|
| 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 | + - plugin:jest/recommended |
| 35 | + |
| 36 | +rules: |
| 37 | + { |
| 38 | + "camelcase": "off", |
| 39 | + "eslint-comments/no-use": "off", |
| 40 | + "eslint-comments/no-unused-disable": "off", |
| 41 | + "i18n-text/no-en": "off", |
| 42 | + "import/no-namespace": "off", |
| 43 | + "no-console": "off", |
| 44 | + "no-unused-vars": "off", |
| 45 | + "semi": "off", |
| 46 | + "@typescript-eslint/array-type": "error", |
| 47 | + "@typescript-eslint/await-thenable": "error", |
| 48 | + "@typescript-eslint/ban-ts-comment": "error", |
| 49 | + "@typescript-eslint/consistent-type-assertions": "error", |
| 50 | + "@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "no-public" }], |
| 51 | + "@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }], |
| 52 | + "@typescript-eslint/no-array-constructor": "error", |
| 53 | + "@typescript-eslint/no-empty-interface": "error", |
| 54 | + "@typescript-eslint/no-explicit-any": "error", |
| 55 | + "@typescript-eslint/no-extraneous-class": "error", |
| 56 | + "@typescript-eslint/no-for-in-array": "error", |
| 57 | + "@typescript-eslint/no-inferrable-types": "error", |
| 58 | + "@typescript-eslint/no-misused-new": "error", |
| 59 | + "@typescript-eslint/no-namespace": "error", |
| 60 | + "@typescript-eslint/no-non-null-assertion": "warn", |
| 61 | + "@typescript-eslint/no-require-imports": "error", |
| 62 | + "@typescript-eslint/no-unnecessary-qualifier": "error", |
| 63 | + "@typescript-eslint/no-unnecessary-type-assertion": "error", |
| 64 | + "@typescript-eslint/no-unused-vars": "error", |
| 65 | + "@typescript-eslint/no-useless-constructor": "error", |
| 66 | + "@typescript-eslint/no-var-requires": "error", |
| 67 | + "@typescript-eslint/prefer-for-of": "warn", |
| 68 | + "@typescript-eslint/prefer-function-type": "warn", |
| 69 | + "@typescript-eslint/prefer-includes": "error", |
| 70 | + "@typescript-eslint/prefer-string-starts-ends-with": "error", |
| 71 | + "@typescript-eslint/promise-function-async": "error", |
| 72 | + "@typescript-eslint/require-array-sort-compare": "error", |
| 73 | + "@typescript-eslint/restrict-plus-operands": "error", |
| 74 | + "@typescript-eslint/space-before-function-paren": "off", |
| 75 | + "@typescript-eslint/unbound-method": "error" |
| 76 | + } |
0 commit comments