You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/eslint-plugin/docs/rules/sort-type-constituents.mdx
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,12 @@ import TabItem from '@theme/TabItem';
9
9
>
10
10
> See **https://typescript-eslint.io/rules/sort-type-constituents** for documentation.
11
11
12
+
:::danger Deprecated
13
+
This rule has been deprecated in favor of the [`perfectionist/sort-intersection-types`](https://eslint-plugin-perfectionist.azat.io/rules/sort-intersection-types) and [`perfectionist/sort-union-types`](https://eslint-plugin-perfectionist.azat.io/rules/sort-union-types) rules.
14
+
15
+
See [Docs: Deprecate sort-type-constituents in favor of eslint-plugin-perfectionist](https://github.com/typescript-eslint/typescript-eslint/issues/8915) and [eslint-plugin: Feature freeze naming and sorting stylistic rules](https://github.com/typescript-eslint/typescript-eslint/issues/8792) for more information.
16
+
:::
17
+
12
18
Sorting union (`|`) and intersection (`&`) types can help:
13
19
14
20
- keep your codebase standardized
@@ -19,15 +25,6 @@ This rule reports on any types that aren't sorted alphabetically.
19
25
20
26
> Types are sorted case-insensitively and treating numbers like a human would, falling back to character code sorting in case of ties.
21
27
22
-
:::note
23
-
This rule is _feature frozen_: it will no longer receive new features such as new options.
24
-
It still will accept bug and documentation fixes for its existing area of features.
25
-
26
-
Stylistic rules that enforce naming and/or sorting conventions tend to grow incomprehensibly complex as increasingly obscure features are requested.
27
-
This rule has reached the limit of what is reasonable for the typescript-eslint project to maintain.
28
-
See [eslint-plugin: Feature freeze naming and sorting stylistic rules](https://github.com/typescript-eslint/typescript-eslint/issues/8792) for more information.
0 commit comments