Skip to content

Commit 3a43b90

Browse files
committed
refactor: remove rule 'no-useless-fragment' from recommended presets
1 parent 111b7a7 commit 3a43b90

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
- Add rule `no-default-props`.
77
- Add `settings["react-x"].additionalComponents` settings (currently only the `no-unsafe-target-blank` rule uses it, but more rules will use it in the future).
88

9+
### 🪄 Improvements
10+
11+
- Add rule `no-prop-types` to recommended presets.
12+
- Add rule `no-default-props` to recommended presets.
13+
- Remove rule `no-useless-fragment` from recommended presets.
14+
915
## v1.5.28 (Sat 20 Jul 2024)
1016

1117
### 🐞 Fixes

packages/plugins/eslint-plugin-react-x/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export default [
6262
"react-x/no-unstable-default-props": "error",
6363
"react-x/no-unused-class-component-members": "warn",
6464
"react-x/no-unused-state": "warn",
65-
"react-x/no-useless-fragment": "warn",
6665
}
6766
],
6867
},

packages/plugins/eslint-plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const recommendedPreset = {
128128
"no-unstable-default-props": "error",
129129
"no-unused-class-component-members": "warn",
130130
"no-unused-state": "warn",
131-
"no-useless-fragment": "warn",
131+
// "no-useless-fragment": "warn",
132132
// "prefer-read-only-props": "warn",
133133
// "prefer-destructuring-assignment": "warn",
134134
// "prefer-shorthand-boolean": "warn",

0 commit comments

Comments
 (0)