From 1fd919f307546ceb63d8a47de76d6ea8fb7b0732 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 25 Sep 2024 17:42:51 +0200 Subject: [PATCH] style(eslint): allow referrers in target="_blank" links --- client/package.json | 10 +++++++++- .../organisms/article-actions/language-menu/index.tsx | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/client/package.json b/client/package.json index f1ad9b7ab58a..71751e51a292 100644 --- a/client/package.json +++ b/client/package.json @@ -21,7 +21,15 @@ ] }, "eslintConfig": { - "extends": "react-app" + "extends": "react-app", + "rules": { + "react/jsx-no-target-blank": [ + "error", + { + "allowReferrer": true + } + ] + } }, "jest": { "collectCoverageFrom": [ diff --git a/client/src/ui/organisms/article-actions/language-menu/index.tsx b/client/src/ui/organisms/article-actions/language-menu/index.tsx index d14ec70e8e74..3617e81097bc 100644 --- a/client/src/ui/organisms/article-actions/language-menu/index.tsx +++ b/client/src/ui/organisms/article-actions/language-menu/index.tsx @@ -1,4 +1,3 @@ -/* eslint-disable react/jsx-no-target-blank */ import { useEffect, useState } from "react"; import { useLocation } from "react-router-dom";