Skip to content

Commit a567e9b

Browse files
Rel1cxCopilot
andauthored
Update packages/plugins/eslint-plugin-react-dom/src/rules/no-unsafe-target-blank.spec.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
1 parent 9e66622 commit a567e9b

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

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

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -107,29 +107,7 @@ ruleTester.run(RULE_NAME, rule, {
107107
},
108108
},
109109
},
110-
// {
111-
// code: '<Link href="https://react.dev" target="_blank"></Link>',
112-
// errors: [
113-
// {
114-
// messageId: "noUnsafeTargetBlank",
115-
// suggestions: [
116-
// {
117-
// messageId: "addRelNoreferrerNoopener",
118-
// output: '<Link rel="noreferrer noopener" href="https://react.dev" target="_blank"></Link>',
119-
// },
120-
// ],
121-
// },
122-
// ],
123-
// settings: {
124-
// "react-x": {
125-
// additionalComponents: [
126-
// {
127-
// name: "Link",
128-
// as: "a",
129-
// },
130-
// ],
131-
// },
132-
// },
110+
// TODO: Restore Link component test when support for additionalComponents is implemented. See issue #<issue-number>.
133111
// },
134112
// {
135113
// code: '<Link href="https://react.dev" target="_blank" rel="noopener"></Link>',

0 commit comments

Comments
 (0)