|
| 1 | +## v2.0.0 (TBD) |
| 2 | + |
| 3 | +### 💥 Breaking Changes |
| 4 | + |
| 5 | +#### Plugins and Rules |
| 6 | + |
| 7 | +The following rules have been renamed: |
| 8 | + |
| 9 | +- `react-x/no-comment-textnodes` to `react-x/jsx-no-comment-textnodes` |
| 10 | +- `react-x/no-nested-components` to `react-x/no-nested-component-definitions` |
| 11 | +- `react-x/prefer-react-namespace-import` to `react-x/prefer-namespace-import` |
| 12 | + |
| 13 | +The following rules have been integrated into new rules: |
| 14 | + |
| 15 | +- `react-x/jsx-shorthand-boolean` replaces `avoid-shorthand-boolean` and `prefer-shorthand-boolean` |
| 16 | +- `react-x/jsx-shorthand-fragment` replaces `avoid-shorthand-fragment` and `prefer-shorthand-fragment` |
| 17 | +- `react-hooks-extra/no-direct-set-state-in-use-effect` replaces `no-direct-set-state-in-use-layout-effect` |
| 18 | + |
| 19 | +The following rules have been relocated to new plugins: |
| 20 | + |
| 21 | +- `react-hooks-extra/no-unnecessary-use-callback` to `react-x/no-unnecessary-use-callback` |
| 22 | +- `react-hooks-extra/no-unnecessary-use-memo` to `react-x/no-unnecessary-use-memo` |
| 23 | +- `react-hooks-extra/no-unnecessary-use-prefix` to `react-x/no-unnecessary-use-prefix` |
| 24 | +- `react-hooks-extra/prefer-use-state-lazy-initialization` to `react-x/prefer-use-state-lazy-initialization` |
| 25 | + |
| 26 | +#### Settings |
| 27 | + |
| 28 | +The following settings have been removed from `settings["react-x"]`: |
| 29 | + |
| 30 | +- `additionalComponents` |
| 31 | +- `additionalHooks` |
| 32 | +- `skipImportCheck` |
| 33 | + |
| 34 | +### ✨ New |
| 35 | + |
| 36 | +- feat: add `react-x/jsx-shorthand-boolean` rule to replace `avoid-shorthand-boolean` and `prefer-shorthand-boolean` rules |
| 37 | +- feat: add `react-x/jsx-shorthand-fragment` rule to replace `avoid-shorthand-fragment` and `prefer-shorthand-fragment` rules |
| 38 | +- feat: add `react-x/no-forbidden-props` rule to disallow specific props on components |
| 39 | +- feat: add `react-x/no-unnecessary-key` rule to report unnecessary `key` props on elements |
| 40 | +- feat: add `react-x/no-unused-props` rule to report unused props in components |
| 41 | +- feat: add `react-dom/no-string-style-prop` rule to disallow string values in `style` prop |
| 42 | +- feat: add `react-dom/prefer-namespace-import` rule to enforce using namespace import for `react-dom` |
| 43 | + |
| 44 | +### 🪄 Improvements |
| 45 | + |
| 46 | +- build: migrate to `tsdown` for building the packages |
| 47 | + |
1 | 48 | ## v1.53.1 (2025-09-11) |
2 | 49 |
|
3 | 50 | ### 🐞 Fixes |
|
0 commit comments