Skip to content

Commit 9670a3a

Browse files
committed
fix(eslint-config): disable @typescript-eslint/sort-type-constituents rule to prevent conflicts with perfectionist sorting
- Disabled the `@typescript-eslint/sort-type-constituents` rule to avoid conflicts with the `perfectionist/sort-intersection-types` rule.
1 parent d3fd12f commit 9670a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/eslint-config/src/config/plugins/typescript.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ export default createConfig<
395395

396396
// Enforce constituents of a type union/intersection to be sorted alphabetically.
397397
// https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules/sort-type-constituents.mdx
398-
"@typescript-eslint/sort-type-constituents": "error",
398+
// Disabled to avoid conflicts with perfectionist/sort-intersection-types
399+
"@typescript-eslint/sort-type-constituents": "off",
399400

400401
// Replaced by stylistic rules
401402
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-function-paren.mdx

0 commit comments

Comments
 (0)