Skip to content

Commit 768fd65

Browse files
committed
refactor: remove style rules from recommended presets
1 parent a9c307a commit 768fd65

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
- Fix debug rules not exporting correctly in `@eslint-react/eslint-plugin`.
66

7+
### 🪄 Improvements
8+
9+
- Remove rule `prefer-shorthand-boolean` from recommended presets.
10+
- Remove rule `prefer-shorthand-fragment` from recommended presets.
11+
- Remove rule `prefer-destructuring-assignment` from recommended presets.
12+
713
## v1.5.15 (Sat 08 Jun 2024)
814

915
### 🐞 Fixes
@@ -16,12 +22,12 @@
1622

1723
### ✨ New
1824

19-
- Add rule `react/avoid-shorthand-boolean`.
20-
- Add rule `react/avoid-shorthand-fragment`.
25+
- Add rule `avoid-shorthand-boolean`.
26+
- Add rule `avoid-shorthand-fragment`.
2127

2228
### 🐞 Fixes
2329

24-
- Fix rule `react-dom/no-missing-button-type` false positive when using `type` attribute in a JSX expression.
30+
- Fix rule `dom/no-missing-button-type` false positive when using `type` attribute in a JSX expression.
2531

2632
## v1.5.13 (Tue 28 May 2024)
2733

@@ -108,7 +114,7 @@
108114

109115
### 🐞 Fixes
110116

111-
- Fix rule `react-dom/no-render-return-value` not renamed in v1.0.0.
117+
- Fix rule `dom/no-render-return-value` not renamed in v1.0.0.
112118

113119
### 🪄 Improvements
114120

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ const recommendedPreset = {
120120
"no-unused-class-component-members": "warn",
121121
"no-unused-state": "warn",
122122
"no-useless-fragment": "warn",
123-
"prefer-destructuring-assignment": "warn",
124-
"prefer-shorthand-boolean": "warn",
125-
"prefer-shorthand-fragment": "warn",
126-
123+
// "prefer-destructuring-assignment": "warn",
124+
// "prefer-shorthand-boolean": "warn",
125+
// "prefer-shorthand-fragment": "warn",
127126
// eslint-disable-next-line perfectionist/sort-objects
128127
"dom/no-children-in-void-dom-elements": "warn",
129128
"dom/no-dangerously-set-innerhtml": "warn",

0 commit comments

Comments
 (0)