From 4a60fe3d22492e731ea55afc74fff13294640cae Mon Sep 17 00:00:00 2001 From: David Luzar <5153846+dwelle@users.noreply.github.com> Date: Tue, 29 Apr 2025 18:45:17 +0200 Subject: [PATCH] fix: remove `noreferrer` on internal links (#9452) * fix: remove `noreferrer` on internal links * fix snaps * fix lint --- .eslintrc.json | 6 ++++++ excalidraw-app/components/AI.tsx | 2 +- excalidraw-app/components/EncryptedIcon.tsx | 2 +- excalidraw-app/components/ExcalidrawPlusAppLink.tsx | 2 +- .../tests/__snapshots__/MobileMenu.test.tsx.snap | 2 +- packages/excalidraw/components/HelpDialog.tsx | 4 ++-- packages/excalidraw/components/PublishLibrary.tsx | 2 +- .../components/dropdownMenu/DropdownMenuItemLink.tsx | 5 +++-- .../components/welcome-screen/WelcomeScreen.Center.tsx | 2 +- .../tests/__snapshots__/excalidraw.test.tsx.snap | 8 ++++---- 10 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8263b08a9a..89f8227361 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -32,6 +32,12 @@ "name": "jotai", "message": "Do not import from \"jotai\" directly. Use our app-specific modules (\"editor-jotai\" or \"app-jotai\")." } + ], + "react/jsx-no-target-blank": [ + "error", + { + "allowReferrer": true + } ] } } diff --git a/excalidraw-app/components/AI.tsx b/excalidraw-app/components/AI.tsx index 4469d74f66..9a222a968e 100644 --- a/excalidraw-app/components/AI.tsx +++ b/excalidraw-app/components/AI.tsx @@ -73,7 +73,7 @@ export const AIComponents = ({