|
86 | 86 | ], |
87 | 87 | "typescript/explicit-function-return-type": "off", |
88 | 88 | "typescript/explicit-module-boundary-types": "off", |
89 | | - // require type info |
| 89 | + |
| 90 | + // typeaware |
90 | 91 | "typescript/await-thenable": "off", |
91 | | - "typescript/consistent-return": "off", |
92 | | - "typescript/consistent-type-exports": "off", |
93 | | - "typescript/dot-notation": "off", |
94 | | - "typescript/no-array-delete": "off", |
| 92 | + "typescript/consistent-return": "error", |
| 93 | + "typescript/consistent-type-exports": [ |
| 94 | + "error", |
| 95 | + { "fixMixedExportsWithInlineTypeSpecifier": true } |
| 96 | + ], |
| 97 | + "typescript/dot-notation": "error", |
| 98 | + "typescript/no-array-delete": "error", |
| 99 | + // should fix 25 errors |
95 | 100 | "typescript/no-base-to-string": "off", |
| 101 | + // 598 errors, we should enable this gradually and fix errors over time |
96 | 102 | "typescript/no-confusing-void-expression": "off", |
| 103 | + // should fix errors |
97 | 104 | "typescript/no-deprecated": "off", |
98 | | - "typescript/no-duplicate-type-constituents": "off", |
| 105 | + "typescript/no-duplicate-type-constituents": "error", |
99 | 106 | "typescript/no-floating-promises": "off", |
100 | | - "typescript/no-for-in-array": "off", |
101 | | - "typescript/no-implied-eval": "off", |
102 | | - "typescript/no-meaningless-void-operator": "off", |
| 107 | + "typescript/no-for-in-array": "error", |
| 108 | + "typescript/no-implied-eval": "error", |
| 109 | + "typescript/no-meaningless-void-operator": "error", |
| 110 | + // 232 errors |
103 | 111 | "typescript/no-misused-promises": "off", |
104 | | - "typescript/no-misused-spread": "off", |
105 | | - "typescript/no-mixed-enums": "off", |
106 | | - "typescript/no-redundant-type-constituents": "off", |
| 112 | + "typescript/no-misused-spread": "error", |
| 113 | + "typescript/no-mixed-enums": "error", |
| 114 | + "typescript/no-redundant-type-constituents": "error", |
| 115 | + // 27 errors, need carefull check |
107 | 116 | "typescript/no-unnecessary-boolean-literal-compare": "off", |
108 | | - "typescript/no-unnecessary-qualifier": "off", |
109 | | - "typescript/no-unnecessary-template-expression": "off", |
110 | | - "typescript/no-unnecessary-type-arguments": "off", |
111 | | - "typescript/no-unnecessary-type-assertion": "off", |
| 117 | + // 2903 errors |
| 118 | + "typescript/no-unnecessary-condition": "off", |
| 119 | + "typescript/no-unnecessary-qualifier": "error", |
| 120 | + "typescript/no-unnecessary-template-expression": "error", |
| 121 | + "typescript/no-unnecessary-type-arguments": "error", |
| 122 | + "typescript/no-unnecessary-type-assertion": "error", |
| 123 | + // false-positives with generics, need carefull check |
112 | 124 | "typescript/no-unnecessary-type-parameters": "off", |
113 | 125 | "typescript/no-unsafe-argument": "off", |
114 | 126 | "typescript/no-unsafe-assignment": "off", |
115 | 127 | "typescript/no-unsafe-call": "off", |
| 128 | + // 41 errors, need carefull check |
116 | 129 | "typescript/no-unsafe-enum-comparison": "off", |
117 | 130 | "typescript/no-unsafe-member-access": "off", |
118 | 131 | "typescript/no-unsafe-return": "off", |
119 | 132 | "typescript/no-unsafe-type-assertion": "off", |
120 | | - "typescript/no-unsafe-unary-minus": "off", |
| 133 | + "typescript/no-unsafe-unary-minus": "error", |
| 134 | + // 184 errors, need carefull check |
121 | 135 | "typescript/no-useless-default-assignment": "off", |
| 136 | + // 34 errors, need carefull check |
122 | 137 | "typescript/non-nullable-type-assertion-style": "off", |
123 | | - "typescript/only-throw-error": "off", |
124 | | - "typescript/prefer-find": "off", |
125 | | - "typescript/prefer-includes": "off", |
| 138 | + "typescript/only-throw-error": "error", |
| 139 | + "typescript/prefer-find": "error", |
| 140 | + "typescript/prefer-includes": "error", |
| 141 | + // 1197 errors |
126 | 142 | "typescript/prefer-nullish-coalescing": "off", |
127 | | - "typescript/prefer-optional-chain": "off", |
128 | | - "typescript/prefer-promise-reject-errors": "off", |
129 | | - "typescript/prefer-readonly": "off", |
| 143 | + "typescript/prefer-optional-chain": "error", |
| 144 | + "typescript/prefer-promise-reject-errors": "error", |
| 145 | + "typescript/prefer-readonly": "error", |
130 | 146 | "typescript/prefer-readonly-parameter-types": "off", |
131 | | - "typescript/prefer-reduce-type-parameter": "off", |
| 147 | + "typescript/prefer-reduce-type-parameter": "error", |
132 | 148 | "typescript/prefer-regexp-exec": "off", |
133 | | - "typescript/prefer-return-this-type": "off", |
134 | | - "typescript/prefer-string-starts-ends-with": "off", |
| 149 | + "typescript/prefer-return-this-type": "error", |
| 150 | + "typescript/prefer-string-starts-ends-with": "error", |
135 | 151 | "typescript/promise-function-async": "off", |
136 | | - "typescript/related-getter-setter-pairs": "off", |
137 | | - "typescript/require-array-sort-compare": "off", |
138 | | - "typescript/require-await": "off", |
139 | | - "typescript/restrict-plus-operands": "off", |
140 | | - "typescript/restrict-template-expressions": "off", |
| 152 | + "typescript/related-getter-setter-pairs": "error", |
| 153 | + "typescript/require-array-sort-compare": "error", |
| 154 | + "typescript/require-await": "error", |
| 155 | + "typescript/restrict-plus-operands": "error", |
| 156 | + "typescript/restrict-template-expressions": "error", |
141 | 157 | "typescript/return-await": "off", |
142 | 158 | "typescript/strict-boolean-expressions": "off", |
143 | 159 | "typescript/strict-void-return": "off", |
144 | 160 | "typescript/switch-exhaustiveness-check": "off", |
145 | 161 | "typescript/unbound-method": "off", |
146 | | - "typescript/unified-signatures": "error", |
147 | 162 | "typescript/use-unknown-in-catch-callback-variable": "off" |
148 | 163 | } |
149 | 164 | } |
0 commit comments