From 211c1a0d1c91228bb7f7091ec7b2407f4c60cc1a Mon Sep 17 00:00:00 2001 From: dwelle <5153846+dwelle@users.noreply.github.com> Date: Tue, 29 Apr 2025 17:44:18 +0200 Subject: [PATCH] fix: remove `noreferrer` on internal links --- .eslintrc.json | 22 +++++++++++++++++-- excalidraw-app/components/AI.tsx | 2 +- excalidraw-app/components/EncryptedIcon.tsx | 2 +- .../components/ExcalidrawPlusAppLink.tsx | 2 +- packages/excalidraw/components/HelpDialog.tsx | 4 ++-- .../excalidraw/components/PublishLibrary.tsx | 2 +- .../dropdownMenu/DropdownMenuItemLink.tsx | 5 +++-- .../welcome-screen/WelcomeScreen.Center.tsx | 2 +- 8 files changed, 30 insertions(+), 11 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8263b08a9..d977e8980 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,10 +1,22 @@ { - "extends": ["@excalidraw/eslint-config", "react-app"], + "extends": [ + "@excalidraw/eslint-config", + "react-app" + ], "rules": { "import/order": [ "warn", { - "groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"], + "groups": [ + "builtin", + "external", + "internal", + "parent", + "sibling", + "index", + "object", + "type" + ], "pathGroups": [ { "pattern": "@excalidraw/**", @@ -32,6 +44,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 4469d74f6..9a222a968 100644 --- a/excalidraw-app/components/AI.tsx +++ b/excalidraw-app/components/AI.tsx @@ -73,7 +73,7 @@ export const AIComponents = ({