eslint-config-xo 0.53.0 → 0.53.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-xo",
3
- "version": "0.53.0",
3
+ "version": "0.53.2",
4
4
  "description": "ESLint shareable config for XO",
5
5
  "license": "MIT",
6
6
  "repository": "xojs/eslint-config-xo",
@@ -280,69 +280,8 @@ export const typescriptRules = {
280
280
  },
281
281
  },
282
282
  ],
283
- '@typescript-eslint/member-ordering': [
284
- 'error',
285
- {
286
- default: [
287
- 'signature',
288
-
289
- 'public-static-field',
290
- 'public-static-method',
291
-
292
- 'protected-static-field',
293
- 'protected-static-method',
294
-
295
- 'private-static-field',
296
- 'private-static-method',
297
-
298
- 'static-field',
299
- 'static-method',
300
-
301
- 'public-decorated-field',
302
- 'public-instance-field',
303
- 'public-abstract-field',
304
- 'public-field',
305
-
306
- 'protected-decorated-field',
307
- 'protected-instance-field',
308
- 'protected-abstract-field',
309
- 'protected-field',
310
-
311
- 'private-decorated-field',
312
- 'private-instance-field',
313
- 'private-field',
314
-
315
- 'instance-field',
316
- 'abstract-field',
317
- 'decorated-field',
318
- 'field',
319
-
320
- 'public-constructor',
321
- 'protected-constructor',
322
- 'private-constructor',
323
- 'constructor',
324
-
325
- 'public-decorated-method',
326
- 'public-instance-method',
327
- 'public-abstract-method',
328
- 'public-method',
329
-
330
- 'protected-decorated-method',
331
- 'protected-instance-method',
332
- 'protected-abstract-method',
333
- 'protected-method',
334
-
335
- 'private-decorated-method',
336
- 'private-instance-method',
337
- 'private-method',
338
-
339
- 'instance-method',
340
- 'abstract-method',
341
- 'decorated-method',
342
- 'method',
343
- ],
344
- },
345
- ],
283
+ // We use `unicorn/consistent-class-member-order` for member ordering instead. It's simpler and has an autofix suggestion.
284
+ '@typescript-eslint/member-ordering': 'off',
346
285
 
347
286
  // Disabled for now as it causes too many weird TypeScript issues. I'm not sure whether the problems are caused by bugs in TS or problems in my types.
348
287
  // TODO: Try to re-enable this again in 2026.
@@ -610,6 +549,7 @@ export const typescriptRules = {
610
549
  },
611
550
  ],
612
551
  '@typescript-eslint/return-await': 'error',
552
+ 'unicorn/require-array-sort-compare': 'off',
613
553
  '@typescript-eslint/require-array-sort-compare': [
614
554
  'error',
615
555
  {