|
6 | 6 | }, |
7 | 7 | "plugins": [ |
8 | 8 | "@typescript-eslint", |
| 9 | + "@stylistic/ts", |
9 | 10 | "eslint-plugin-eslint-comments", |
10 | 11 | "eslint-plugin-import", |
11 | 12 | "eslint-plugin-jsdoc", |
|
166 | 167 | "@typescript-eslint/consistent-type-assertions": "error", |
167 | 168 | "@typescript-eslint/dot-notation": "error", |
168 | 169 | "@typescript-eslint/explicit-member-accessibility": "error", |
169 | | - "@typescript-eslint/indent": [ |
| 170 | + "@typescript-eslint/naming-convention": [ |
| 171 | + "error", |
| 172 | + { |
| 173 | + "selector": "enumMember", |
| 174 | + "format": [ |
| 175 | + "UPPER_CASE" |
| 176 | + ] |
| 177 | + } |
| 178 | + ], |
| 179 | + "@typescript-eslint/no-empty-interface": "off", |
| 180 | + "@typescript-eslint/no-empty-object-type": "off", |
| 181 | + "@typescript-eslint/no-extraneous-class": "error", |
| 182 | + "@typescript-eslint/no-misused-promises": "off", |
| 183 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 184 | + "@typescript-eslint/no-parameter-properties": "off", |
| 185 | + "@typescript-eslint/no-floating-promises": "error", |
| 186 | + "@typescript-eslint/no-shadow": [ |
| 187 | + "error", |
| 188 | + { |
| 189 | + "hoist": "never" |
| 190 | + } |
| 191 | + ], |
| 192 | + "@typescript-eslint/no-unnecessary-type-assertion": "error", |
| 193 | + "@typescript-eslint/no-unused-expressions": "error", |
| 194 | + "@typescript-eslint/no-unused-vars": "off", |
| 195 | + "@typescript-eslint/no-var-requires": "off", |
| 196 | + "@typescript-eslint/only-throw-error": "error", |
| 197 | + "@typescript-eslint/prefer-for-of": "off", |
| 198 | + "@typescript-eslint/prefer-function-type": "error", |
| 199 | + "@typescript-eslint/triple-slash-reference": "off", |
| 200 | + "@typescript-eslint/unbound-method": "error", |
| 201 | + "@typescript-eslint/unified-signatures": "error", |
| 202 | + |
| 203 | + /* Plugin: @stylistic/ts */ |
| 204 | + "@stylistic/ts/indent": [ |
170 | 205 | "warn", |
171 | 206 | 2, |
172 | 207 | { |
|
191 | 226 | "offsetTernaryExpressions": true |
192 | 227 | } |
193 | 228 | ], |
194 | | - "@typescript-eslint/member-delimiter-style": [ |
| 229 | + "@stylistic/ts/member-delimiter-style": [ |
195 | 230 | "error", |
196 | 231 | { |
197 | 232 | "multiline": { |
|
203 | 238 | } |
204 | 239 | } |
205 | 240 | ], |
206 | | - "@typescript-eslint/naming-convention": [ |
207 | | - "error", |
208 | | - { |
209 | | - "selector": "enumMember", |
210 | | - "format": [ |
211 | | - "UPPER_CASE" |
212 | | - ] |
213 | | - } |
214 | | - ], |
215 | | - "@typescript-eslint/no-empty-interface": "off", |
216 | | - "@typescript-eslint/no-extraneous-class": "error", |
217 | | - "@typescript-eslint/no-misused-promises": "off", |
218 | | - "@typescript-eslint/no-non-null-assertion": "off", |
219 | | - "@typescript-eslint/no-parameter-properties": "off", |
220 | | - "@typescript-eslint/no-floating-promises": "error", |
221 | | - "@typescript-eslint/no-shadow": [ |
222 | | - "error", |
223 | | - { |
224 | | - "hoist": "never" |
225 | | - } |
226 | | - ], |
227 | | - "@typescript-eslint/no-throw-literal": "error", |
228 | | - "@typescript-eslint/no-unnecessary-type-assertion": "error", |
229 | | - "@typescript-eslint/no-unused-expressions": "error", |
230 | | - "@typescript-eslint/no-unused-vars": "off", |
231 | | - "@typescript-eslint/no-var-requires": "off", |
232 | | - "@typescript-eslint/prefer-for-of": "off", |
233 | | - "@typescript-eslint/prefer-function-type": "error", |
234 | | - "@typescript-eslint/semi": [ |
| 241 | + "@stylistic/ts/semi": [ |
235 | 242 | "error", |
236 | 243 | "never" |
237 | 244 | ], |
238 | | - "@typescript-eslint/triple-slash-reference": "off", |
239 | | - "@typescript-eslint/type-annotation-spacing": "error", |
240 | | - "@typescript-eslint/unbound-method": "error", |
241 | | - "@typescript-eslint/unified-signatures": "error", |
| 245 | + "@stylistic/ts/type-annotation-spacing": "error", |
| 246 | + |
242 | 247 | /* Plugin: eslint-plugin-eslint-comments */ |
243 | 248 | "eslint-comments/no-unused-disable": "error", |
244 | 249 | "eslint-comments/no-unused-enable": "error", |
|
0 commit comments