|
| 1 | +env: |
| 2 | + jest: true |
| 3 | + node: true |
| 4 | +root: true |
| 5 | +plugins: |
| 6 | + - import |
| 7 | + - prettier |
| 8 | +parserOptions: |
| 9 | + ecmaVersion: 2021 |
| 10 | + sourceType: module |
| 11 | +extends: |
| 12 | + - plugin:prettier/recommended |
| 13 | + - prettier |
| 14 | +rules: |
| 15 | + prettier/prettier: [error] |
| 16 | + import/no-extraneous-dependencies: |
| 17 | + - error |
| 18 | + - devDependencies: |
| 19 | + - "**/test/**" |
| 20 | + - "**/build-tools/**" |
| 21 | + optionalDependencies: false |
| 22 | + peerDependencies: true |
| 23 | + import/no-unresolved: [error] |
| 24 | + import/order: |
| 25 | + - warn |
| 26 | + - groups: |
| 27 | + - builtin |
| 28 | + - external |
| 29 | + alphabetize: |
| 30 | + order: asc |
| 31 | + caseInsensitive: true |
| 32 | + array-callback-return: [warn] |
| 33 | + no-await-in-loop: [warn] |
| 34 | + no-constant-binary-expression: [error] |
| 35 | + no-constructor-return: [error] |
| 36 | + no-duplicate-imports: [error] |
| 37 | + no-self-compare: [warn] |
| 38 | + no-template-curly-in-string: [error] |
| 39 | + no-unmodified-loop-condition: [error] |
| 40 | + no-unreachable-loop: [error] |
| 41 | + no-unused-private-class-members: [error] |
| 42 | + no-use-before-define: [error] |
| 43 | + require-atomic-updates: [error] |
| 44 | + block-scoped-var: [warn] |
| 45 | + camelcase: [warn] |
| 46 | + class-methods-use-this: [error] |
| 47 | + consistent-return: [warn] |
| 48 | + consistent-this: [warn] |
| 49 | + default-case-last: [warn] |
| 50 | + default-param-last: [warn] |
| 51 | + dot-notation: [error] |
| 52 | + eqeqeq: [error] |
| 53 | + guard-for-in: [warn] |
| 54 | + logical-assignment-operators: |
| 55 | + - error |
| 56 | + - always |
| 57 | + - enforceForIfStatements: false |
| 58 | + no-array-constructor: [error] |
| 59 | + no-bitwise: [error] |
| 60 | + no-console: [warn] |
| 61 | + no-empty-function: [warn] |
| 62 | + no-eval: [error] |
| 63 | + no-extra-bind: [error] |
| 64 | + no-labels: [error] |
| 65 | + no-implicit-globals: [error] |
| 66 | + no-invalid-this: [error] |
| 67 | + key-spacing: [error] |
| 68 | + no-multiple-empty-lines: [error] |
| 69 | + no-return-await: [warn] |
| 70 | + no-trailing-spaces: [error] |
| 71 | + no-lonely-if: [error] |
| 72 | + no-nested-ternary: [warn] |
| 73 | + no-mixed-operators: [warn] |
| 74 | + no-proto: [error] |
| 75 | + no-sequences: [error] |
| 76 | + no-throw-literal: [error] |
| 77 | + no-useless-call: [error] |
| 78 | + no-useless-concat: [warn] |
| 79 | + no-var: [error] |
| 80 | + one-var-declaration-per-line: [error] |
| 81 | + prefer-const: [warn] |
| 82 | + prefer-arrow-callback: [warn] |
| 83 | + prefer-regex-literals: [warn] |
| 84 | + prefer-promise-reject-errors: [warn] |
| 85 | + prefer-spread: [warn] |
| 86 | + prefer-template: [warn] |
| 87 | + require-await: [error] |
| 88 | +overrides: |
| 89 | + - files: |
| 90 | + - '**/*.ts' |
| 91 | + parser: '@typescript-eslint/parser' |
| 92 | + parserOptions: |
| 93 | + ecmaVersion: 2021 |
| 94 | + sourceType: module |
| 95 | + project: ./tsconfig.json |
| 96 | + extends: |
| 97 | + - plugin:@typescript-eslint/recommended |
| 98 | + - plugin:@typescript-eslint/recommended-requiring-type-checking |
| 99 | + - plugin:import/typescript |
| 100 | + rules: |
| 101 | + '@typescript-eslint/array-type': |
| 102 | + - warn |
| 103 | + - default: array-simple |
| 104 | + '@typescript-eslint/ban-tslint-comment': [error] |
| 105 | + '@typescript-eslint/consistent-indexed-object-style': [warn] |
| 106 | + '@typescript-eslint/consistent-type-assertions': [warn] |
| 107 | + '@typescript-eslint/prefer-includes': [warn] |
| 108 | + dot-notation: [off] |
| 109 | + '@typescript-eslint/dot-notation': [error] |
| 110 | + '@typescript-eslint/no-explicit-any': [off] |
| 111 | + '@typescript-eslint/consistent-type-exports': [warn] |
| 112 | + '@typescript-eslint/consistent-type-imports': [warn] |
| 113 | + '@typescript-eslint/no-base-to-string': [error] |
| 114 | + '@typescript-eslint/no-confusing-non-null-assertion': [warn] |
| 115 | + '@typescript-eslint/no-invalid-void-type': [error] |
| 116 | + '@typescript-eslint/no-meaningless-void-operator': [warn] |
| 117 | + '@typescript-eslint/no-redundant-type-constituents': [warn] |
| 118 | + '@typescript-eslint/no-unnecessary-boolean-literal-compare': [warn] |
| 119 | + '@typescript-eslint/no-unnecessary-condition': [warn] |
| 120 | + '@typescript-eslint/no-unnecessary-qualifier': [warn] |
| 121 | + '@typescript-eslint/no-unnecessary-type-arguments': [warn] |
| 122 | + '@typescript-eslint/non-nullable-type-assertion-style': [warn] |
| 123 | + '@typescript-eslint/prefer-for-of': [error] |
| 124 | + '@typescript-eslint/prefer-literal-enum-member': [warn] |
| 125 | + '@typescript-eslint/prefer-optional-chain': [warn] |
| 126 | + '@typescript-eslint/prefer-readonly': [warn] |
| 127 | + '@typescript-eslint/prefer-regexp-exec': [warn] |
| 128 | + '@typescript-eslint/prefer-string-starts-ends-with': [warn] |
| 129 | + '@typescript-eslint/prefer-ts-expect-error': [error] |
| 130 | + '@typescript-eslint/promise-function-async': [warn] |
| 131 | + '@typescript-eslint/require-array-sort-compare': [error] |
| 132 | + default-param-last: [off] |
| 133 | + '@typescript-eslint/default-param-last': [warn] |
| 134 | + no-array-constructor: [off] |
| 135 | + '@typescript-eslint/no-array-constructor': [error] |
| 136 | + no-dupe-class-members: [off] |
| 137 | + '@typescript-eslint/no-dupe-class-members': [warn] |
| 138 | + no-invalid-this: [off] |
| 139 | + '@typescript-eslint/no-invalid-this': [warn] |
| 140 | + no-unused-vars: [off] |
| 141 | + '@typescript-eslint/no-unused-vars': |
| 142 | + - error |
| 143 | + - varsIgnorePattern: '^_' |
| 144 | + argsIgnorePattern: '^_' |
| 145 | + caughtErrorsIgnorePattern: '^_' |
| 146 | + '@typescript-eslint/no-non-null-assertion': [off] |
| 147 | + '@typescript-eslint/no-require-imports': |
| 148 | + - error |
| 149 | + no-return-await: [off] |
| 150 | + '@typescript-eslint/return-await': [error] |
| 151 | + no-shadow: [off] |
| 152 | + '@typescript-eslint/no-shadow': [error] |
| 153 | + '@typescript-eslint/no-floating-promises': [error] |
| 154 | + "@typescript-eslint/member-ordering": |
| 155 | + - error |
| 156 | + - default: |
| 157 | + - public-static-field |
| 158 | + - public-static-method |
| 159 | + - protected-static-field |
| 160 | + - protected-static-method |
| 161 | + - private-static-field |
| 162 | + - private-static-method |
| 163 | + - field |
| 164 | + - constructor |
| 165 | + - method |
| 166 | + no-use-before-define: [off] |
| 167 | + '@typescript-eslint/no-use-before-define': [error] |
| 168 | + no-duplicate-imports: [off] |
0 commit comments