Skip to content

Commit 7ed3b0b

Browse files
committed
docs: add fix feature to 'no-unsafe-target-blank' rule documentation
1 parent d8cafd2 commit 7ed3b0b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

apps/website/content/docs/rules/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ The `jsx-*` rules check for issues exclusive to JSX syntax, which are absent fro
109109
| [`no-script-url`](./dom-no-script-url) | 1️⃣ | | Disallow `javascript:` URLs as attribute values | |
110110
| [`no-unknown-property`](./dom-no-unknown-property) | 0️⃣ | `🔧` `⚙️` | Disallow unknown `DOM` property | |
111111
| [`no-unsafe-iframe-sandbox`](./dom-no-unsafe-iframe-sandbox) | 1️⃣ | | Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations | |
112-
| [`no-unsafe-target-blank`](./dom-no-unsafe-target-blank) | 1️⃣ | | Disallow `target="_blank"` without `rel="noreferrer noopener"` | |
112+
| [`no-unsafe-target-blank`](./dom-no-unsafe-target-blank) | 1️⃣ | `🔧` | Disallow `target="_blank"` without `rel="noreferrer noopener"` | |
113113
| [`no-use-form-state`](./dom-no-use-form-state) | 2️⃣ | `🔄` | Replaces usages of `useFormState` with `useActionState` | >=19.0.0 |
114114
| [`no-void-elements-with-children`](./dom-no-void-elements-with-children) | 2️⃣ | | Disallow `children` in void DOM elements | |
115115

packages/plugins/eslint-plugin-react-dom/src/rules/no-unsafe-target-blank.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ react-dom/no-unsafe-target-blank
1414
@eslint-react/dom/no-unsafe-target-blank
1515
```
1616

17+
**Features**
18+
19+
`🔧`
20+
1721
**Presets**
1822

1923
- `dom`

packages/plugins/eslint-plugin-react-dom/src/rules/no-unsafe-target-blank.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import { createJsxElementResolver, createRule, resolveAttribute } from "../utils
99

1010
export const RULE_NAME = "no-unsafe-target-blank";
1111

12-
export const RULE_FEATURES = [] as const satisfies RuleFeature[];
12+
export const RULE_FEATURES = [
13+
"FIX",
14+
] as const satisfies RuleFeature[];
1315

1416
export type MessageID = CamelCase<typeof RULE_NAME> | RuleSuggestMessageID;
1517

0 commit comments

Comments
 (0)