Skip to content

Commit b4d51ee

Browse files
committed
docs: update changelog
1 parent e5b1b49 commit b4d51ee

File tree

2 files changed

+78
-92
lines changed

2 files changed

+78
-92
lines changed

CHANGELOG.md

Lines changed: 39 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -10,52 +10,45 @@
1010
- Drop support for ESLint 8, minimum required version is now ESLint 9.3.6
1111
- Drop support for TypeScript 4, minimum required version is now TypeScript 5.9.2
1212

13-
**Removed Rules**
14-
15-
| Rule | Replaced by | Reason |
16-
| :----------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------- | :----------- |
17-
| `react-x/avoid-shorthand-boolean` | [`react-x/jsx-shorthand-boolean`](https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean) | consolidated |
18-
| `react-x/avoid-shorthand-fragment` | [`react-x/jsx-shorthand-fragment`](https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment) | consolidated |
19-
| `react-x/ensure-forward-ref-using-ref` | [`react-x/no-useless-forward-ref`](https://eslint-react.xyz/docs/rules/no-useless-forward-ref) | renamed |
20-
| `react-x/jsx-no-duplicate-props` | [`react-x/jsx-no-duplicate-props`](https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props) | renamed |
21-
| `react-x/no-comment-textnodes` | [`react-x/jsx-no-comment-textnodes`](https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes) | renamed |
22-
| `react-x/no-complicated-conditional-rendering` | | discontinued |
23-
| `react-x/no-nested-components` | [`react-x/no-nested-component-definitions`](https://eslint-react.xyz/docs/rules/no-nested-component-definitions) | renamed |
24-
| `react-x/prefer-react-namespace-import` | [`react-x/prefer-namespace-import`](https://eslint-react.xyz/docs/rules/prefer-namespace-import) | renamed |
25-
| `react-x/prefer-shorthand-boolean` | [`react-x/jsx-shorthand-boolean`](https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean) | consolidated |
26-
| `react-x/prefer-shorthand-fragment` | [`react-x/jsx-shorthand-fragment`](https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment) | consolidated |
27-
| `react-x/use-jsx-vars` | [`react-x/jsx-uses-vars`](https://eslint-react.xyz/docs/rules/jsx-uses-vars) | renamed |
28-
| `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 |
29-
| `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 |
30-
| `react-hooks-extra/no-unnecessary-use-callback` | [`react-x/no-unnecessary-use-callback`](https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback) | relocated |
31-
| `react-hooks-extra/no-unnecessary-use-memo` | [`react-x/no-unnecessary-use-memo`](https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo) | relocated |
32-
| `react-hooks-extra/no-unnecessary-use-prefix` | [`react-x/no-unnecessary-use-prefix`](https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix) | relocated |
33-
| `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 |
34-
35-
**Removed Presets**
36-
37-
| Preset | Replaced by | Reason |
38-
| :-------------------------------- | :------------ | :----------- |
39-
| `core` | `x` | renamed |
40-
| `core-legacy` | | discontinued |
41-
| `off-dom` | `disable-dom` | renamed |
42-
| `off-dom-legacy` | | discontinued |
43-
| `x-legacy` | | discontinued |
44-
| `dom-legacy` | | discontinued |
45-
| `web-api-legacy` | | discontinued |
46-
| `recommended-legacy` | | discontinued |
47-
| `recommended-typescript-legacy` | | discontinued |
48-
| `recommended-type-checked-legacy` | | discontinued |
49-
50-
**Removed Settings**
51-
52-
| Setting | Replaced by | Reason |
53-
| :--------------------- | :---------- | :----------- |
54-
| `additionalComponents` | | discontinued |
55-
| `additionalHooks` | | discontinued |
56-
| `skipImportCheck` | | discontinued |
57-
58-
The rule implementations have been refactored to improve performance and maintainability.
13+
**The following rules have been removed:**
14+
15+
- `react-x/no-complicated-conditional-rendering` (discontinued)
16+
17+
**The following rules have been renamed:**
18+
19+
- `react-x/ensure-forward-ref-using-ref` to `react-x/no-useless-forward-ref`
20+
- `react-x/no-comment-textnodes` to `react-x/jsx-no-comment-textnodes`
21+
- `react-x/no-duplicate-props` to `react-x/jsx-no-duplicate-props`
22+
- `react-x/no-nested-components` to `react-x/no-nested-component-definitions`
23+
- `react-x/prefer-react-namespace-import` to `react-x/prefer-namespace-import`
24+
- `react-x/use-jsx-vars` to `react-x/jsx-uses-vars`
25+
- `react-dom/no-children-in-void-dom-elements` to `react-dom/no-void-elements-with-children`
26+
27+
**The following rules have been consolidated into new rules:**
28+
29+
- `react-x/jsx-shorthand-boolean` replaces `avoid-shorthand-boolean` and `prefer-shorthand-boolean`
30+
- `react-x/jsx-shorthand-fragment` replaces `avoid-shorthand-fragment` and `prefer-shorthand-fragment`
31+
- `react-hooks-extra/no-direct-set-state-in-use-effect` replaces `no-direct-set-state-in-use-layout-effect`
32+
33+
**The following rules have been moved from `react-hooks-extra` to `react-x`:**
34+
35+
- `react-hooks-extra/no-unnecessary-use-callback` to `react-x/no-unnecessary-use-callback`
36+
- `react-hooks-extra/no-unnecessary-use-memo` to `react-x/no-unnecessary-use-memo`
37+
- `react-hooks-extra/no-unnecessary-use-prefix` to `react-x/no-unnecessary-use-prefix`
38+
- `react-hooks-extra/prefer-use-state-lazy-initialization` to `react-x/prefer-use-state-lazy-initialization`
39+
40+
**The following presets have been removed:**
41+
42+
- `core` (replaced by `x`)
43+
- `off-dom` (replaced by `disable-dom`)
44+
45+
**The following settings have been removed from `settings["react-x"]`:**
46+
47+
- `additionalComponents` (discontinued)
48+
- `additionalHooks` (discontinued)
49+
- `skipImportCheck` (discontinued)
50+
51+
**For more details on removed rules, presets, and settings, please refer to the [Removed](https://eslint-react.xyz/docs/removed).**
5952

6053
### ✨ New
6154

apps/website/content/docs/changelog.md

Lines changed: 39 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)