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 = ({