Skip to content

Commit 378dca5

Browse files
authored
Simplify preset lists in React ESLint plugins (#1270)
1 parent f419718 commit 378dca5

File tree

77 files changed

+77
-520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+77
-520
lines changed

packages/plugins/eslint-plugin-react-dom/src/rules/no-dangerously-set-innerhtml-with-children.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ react-dom/no-dangerously-set-innerhtml-with-children
1616

1717
**Presets**
1818

19-
- `dom`
20-
- `strict`
21-
- `strict-typescript`
22-
- `strict-type-checked`
23-
- `recommended`
24-
- `recommended-typescript`
25-
- `recommended-type-checked`
26-
19+
`dom`, `recommended` / `recommended-type-checked` / `recommended-typescript`, `strict` / `strict-type-checked` / `strict-typescript`
2720
## Description
2821

2922
Disallow `dangerouslySetInnerHTML` and `children` at the same time.

packages/plugins/eslint-plugin-react-dom/src/rules/no-dangerously-set-innerhtml.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ react-dom/no-dangerously-set-innerhtml
1616

1717
**Presets**
1818

19-
- `dom`
20-
- `strict`
21-
- `strict-typescript`
22-
- `strict-type-checked`
23-
- `recommended`
24-
- `recommended-typescript`
25-
- `recommended-type-checked`
26-
19+
`dom`, `recommended` / `recommended-type-checked` / `recommended-typescript`, `strict` / `strict-type-checked` / `strict-typescript`
2720
## Description
2821

2922
Disallow `dangerouslySetInnerHTML`.

packages/plugins/eslint-plugin-react-dom/src/rules/no-find-dom-node.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ react-dom/no-find-dom-node
1616

1717
**Presets**
1818

19-
- `dom`
20-
- `strict`
21-
- `strict-typescript`
22-
- `strict-type-checked`
23-
- `recommended`
24-
- `recommended-typescript`
25-
- `recommended-type-checked`
26-
19+
`dom`, `recommended` / `recommended-type-checked` / `recommended-typescript`, `strict` / `strict-type-checked` / `strict-typescript`
2720
## Description
2821

2922
Disallow `findDOMNode`.

packages/plugins/eslint-plugin-react-dom/src/rules/no-flush-sync.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ react-dom/no-flush-sync
1616

1717
**Presets**
1818

19-
- `dom`
20-
- `strict`
21-
- `strict-typescript`
22-
- `strict-type-checked`
23-
- `recommended`
24-
- `recommended-typescript`
25-
- `recommended-type-checked`
26-
19+
`dom`, `recommended` / `recommended-type-checked` / `recommended-typescript`, `strict` / `strict-type-checked` / `strict-typescript`
2720
## Description
2821

2922
Disallow `flushSync`.

packages/plugins/eslint-plugin-react-dom/src/rules/no-hydrate.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,7 @@ react-dom/no-hydrate
2020

2121
**Presets**
2222

23-
- `dom`
24-
- `strict`
25-
- `strict-typescript`
26-
- `strict-type-checked`
27-
- `recommended`
28-
- `recommended-typescript`
29-
- `recommended-type-checked`
30-
23+
`dom`, `recommended` / `recommended-type-checked` / `recommended-typescript`, `strict` / `strict-type-checked` / `strict-typescript`
3124
## Description
3225

3326
Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.

packages/plugins/eslint-plugin-react-dom/src/rules/no-missing-button-type.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ react-dom/no-missing-button-type
2020

2121
**Presets**
2222

23-
- `dom`
24-
- `strict`
25-
- `strict-typescript`
26-
- `strict-type-checked`
27-
23+
`dom`, `strict` / `strict-type-checked` / `strict-typescript`
2824
## Description
2925

3026
Enforces explicit `type` attribute for `button` elements.

packages/plugins/eslint-plugin-react-dom/src/rules/no-missing-iframe-sandbox.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ react-dom/no-missing-iframe-sandbox
2020

2121
**Presets**
2222

23-
- `dom`
24-
- `strict`
25-
- `strict-typescript`
26-
- `strict-type-checked`
27-
23+
`dom`, `strict` / `strict-type-checked` / `strict-typescript`
2824
## Description
2925

3026
Enforces explicit `sandbox` attribute for `iframe` elements.

packages/plugins/eslint-plugin-react-dom/src/rules/no-namespace.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ react-dom/no-namespace
1616

1717
**Presets**
1818

19-
- `dom`
20-
- `strict`
21-
- `strict-typescript`
22-
- `strict-type-checked`
23-
- `recommended`
24-
- `recommended-typescript`
25-
- `recommended-type-checked`
26-
19+
`dom`, `recommended` / `recommended-type-checked` / `recommended-typescript`, `strict` / `strict-type-checked` / `strict-typescript`
2720
## Description
2821

2922
Enforces the absence of a `namespace` in React elements.

packages/plugins/eslint-plugin-react-dom/src/rules/no-render-return-value.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ react-dom/no-render-return-value
1616

1717
**Presets**
1818

19-
- `dom`
20-
- `strict`
21-
- `strict-typescript`
22-
- `strict-type-checked`
23-
- `recommended`
24-
- `recommended-typescript`
25-
- `recommended-type-checked`
26-
19+
`dom`, `recommended` / `recommended-type-checked` / `recommended-typescript`, `strict` / `strict-type-checked` / `strict-typescript`
2720
## Description
2821

2922
Disallow the return value of `ReactDOM.render`.

packages/plugins/eslint-plugin-react-dom/src/rules/no-render.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,7 @@ react-dom/no-render
2020

2121
**Presets**
2222

23-
- `dom`
24-
- `strict`
25-
- `strict-typescript`
26-
- `strict-type-checked`
27-
- `recommended`
28-
- `recommended-typescript`
29-
- `recommended-type-checked`
30-
23+
`dom`, `recommended` / `recommended-type-checked` / `recommended-typescript`, `strict` / `strict-type-checked` / `strict-typescript`
3124
## Description
3225

3326
Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.

0 commit comments

Comments
 (0)