@@ -14,52 +14,45 @@ title: Changelog
1414- Drop support for ESLint 8, minimum required version is now ESLint 9.3.6
1515- Drop support for TypeScript 4, minimum required version is now TypeScript 5.9.2
1616
17- ** Removed Rules**
18-
19- | Rule | Replaced by | Reason |
20- | :----------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------- | :----------- |
21- | ` react-x/avoid-shorthand-boolean ` | [ ` react-x/jsx-shorthand-boolean ` ] ( https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean ) | consolidated |
22- | ` react-x/avoid-shorthand-fragment ` | [ ` react-x/jsx-shorthand-fragment ` ] ( https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment ) | consolidated |
23- | ` react-x/ensure-forward-ref-using-ref ` | [ ` react-x/no-useless-forward-ref ` ] ( https://eslint-react.xyz/docs/rules/no-useless-forward-ref ) | renamed |
24- | ` react-x/jsx-no-duplicate-props ` | [ ` react-x/jsx-no-duplicate-props ` ] ( https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props ) | renamed |
25- | ` react-x/no-comment-textnodes ` | [ ` react-x/jsx-no-comment-textnodes ` ] ( https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes ) | renamed |
26- | ` react-x/no-complicated-conditional-rendering ` | | discontinued |
27- | ` react-x/no-nested-components ` | [ ` react-x/no-nested-component-definitions ` ] ( https://eslint-react.xyz/docs/rules/no-nested-component-definitions ) | renamed |
28- | ` react-x/prefer-react-namespace-import ` | [ ` react-x/prefer-namespace-import ` ] ( https://eslint-react.xyz/docs/rules/prefer-namespace-import ) | renamed |
29- | ` react-x/prefer-shorthand-boolean ` | [ ` react-x/jsx-shorthand-boolean ` ] ( https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean ) | consolidated |
30- | ` react-x/prefer-shorthand-fragment ` | [ ` react-x/jsx-shorthand-fragment ` ] ( https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment ) | consolidated |
31- | ` react-x/use-jsx-vars ` | [ ` react-x/jsx-uses-vars ` ] ( https://eslint-react.xyz/docs/rules/jsx-uses-vars ) | renamed |
32- | ` react-dom/no-children-in-void-dom-elements ` | [ ` react-dom/no-void-elements-with-children ` ] ( https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children ) | renamed |
33- | ` react-hooks-extra/no-direct-set-state-in-use-layout-effect ` | [ ` react-hooks-extra/no-direct-set-state-in-use-effect ` ] ( /docs/rules/hooks-extra-no-direct-set-state-in-use-effect ) | consolidated |
34- | ` react-hooks-extra/no-unnecessary-use-callback ` | [ ` react-x/no-unnecessary-use-callback ` ] ( https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback ) | relocated |
35- | ` react-hooks-extra/no-unnecessary-use-memo ` | [ ` react-x/no-unnecessary-use-memo ` ] ( https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo ) | relocated |
36- | ` react-hooks-extra/no-unnecessary-use-prefix ` | [ ` react-x/no-unnecessary-use-prefix ` ] ( https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix ) | relocated |
37- | ` react-hooks-extra/prefer-use-state-lazy-initialization ` | [ ` react-x/prefer-use-state-lazy-initialization ` ] ( https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization ) | relocated |
38-
39- ** Removed Presets**
40-
41- | Preset | Replaced by | Reason |
42- | :-------------------------------- | :------------ | :----------- |
43- | ` core ` | ` x ` | renamed |
44- | ` core-legacy ` | | discontinued |
45- | ` off-dom ` | ` disable-dom ` | renamed |
46- | ` off-dom-legacy ` | | discontinued |
47- | ` x-legacy ` | | discontinued |
48- | ` dom-legacy ` | | discontinued |
49- | ` web-api-legacy ` | | discontinued |
50- | ` recommended-legacy ` | | discontinued |
51- | ` recommended-typescript-legacy ` | | discontinued |
52- | ` recommended-type-checked-legacy ` | | discontinued |
53-
54- ** Removed Settings**
55-
56- | Setting | Replaced by | Reason |
57- | :--------------------- | :---------- | :----------- |
58- | ` additionalComponents ` | | discontinued |
59- | ` additionalHooks ` | | discontinued |
60- | ` skipImportCheck ` | | discontinued |
61-
62- The rule implementations have been refactored to improve performance and maintainability.
17+ ** The following rules have been removed:**
18+
19+ - ` react-x/no-complicated-conditional-rendering ` (discontinued)
20+
21+ ** The following rules have been renamed:**
22+
23+ - ` react-x/ensure-forward-ref-using-ref ` to ` react-x/no-useless-forward-ref `
24+ - ` react-x/no-comment-textnodes ` to ` react-x/jsx-no-comment-textnodes `
25+ - ` react-x/no-duplicate-props ` to ` react-x/jsx-no-duplicate-props `
26+ - ` react-x/no-nested-components ` to ` react-x/no-nested-component-definitions `
27+ - ` react-x/prefer-react-namespace-import ` to ` react-x/prefer-namespace-import `
28+ - ` react-x/use-jsx-vars ` to ` react-x/jsx-uses-vars `
29+ - ` react-dom/no-children-in-void-dom-elements ` to ` react-dom/no-void-elements-with-children `
30+
31+ ** The following rules have been consolidated into new rules:**
32+
33+ - ` react-x/jsx-shorthand-boolean ` replaces ` avoid-shorthand-boolean ` and ` prefer-shorthand-boolean `
34+ - ` react-x/jsx-shorthand-fragment ` replaces ` avoid-shorthand-fragment ` and ` prefer-shorthand-fragment `
35+ - ` react-hooks-extra/no-direct-set-state-in-use-effect ` replaces ` no-direct-set-state-in-use-layout-effect `
36+
37+ ** The following rules have been moved from ` react-hooks-extra ` to ` react-x ` :**
38+
39+ - ` react-hooks-extra/no-unnecessary-use-callback ` to ` react-x/no-unnecessary-use-callback `
40+ - ` react-hooks-extra/no-unnecessary-use-memo ` to ` react-x/no-unnecessary-use-memo `
41+ - ` react-hooks-extra/no-unnecessary-use-prefix ` to ` react-x/no-unnecessary-use-prefix `
42+ - ` react-hooks-extra/prefer-use-state-lazy-initialization ` to ` react-x/prefer-use-state-lazy-initialization `
43+
44+ ** The following presets have been removed:**
45+
46+ - ` core ` (replaced by ` x ` )
47+ - ` off-dom ` (replaced by ` disable-dom ` )
48+
49+ ** The following settings have been removed from ` settings["react-x"] ` :**
50+
51+ - ` additionalComponents ` (discontinued)
52+ - ` additionalHooks ` (discontinued)
53+ - ` skipImportCheck ` (discontinued)
54+
55+ ** For more details on removed rules, presets, and settings, please refer to the [ Removed] ( https://eslint-react.xyz/docs/removed ) .**
6356
6457### ✨ New
6558
0 commit comments