From fa57b14022bd580d61b259f94bc3477b07ed833c Mon Sep 17 00:00:00 2001 From: sashtje Date: Sun, 10 Sep 2023 15:05:28 +0300 Subject: [PATCH] fix: fix eslint config --- .eslintrc.js | 2 +- .../ui/ArticleDetailsPage/ArticleDetailsPage.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index ea3861da..b27c5ae1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -38,7 +38,7 @@ module.exports = { 'no-underscore-dangle': 'off', 'i18next/no-literal-string': ['error', { markupOnly: true, - ignoreAttribute: ['data-testid', 'to'], + ignoreAttribute: ['data-testid', 'to', 'target'], }], 'max-len': ['error', { ignoreComments: true, diff --git a/src/pages/ArticleDetailsPage/ui/ArticleDetailsPage/ArticleDetailsPage.tsx b/src/pages/ArticleDetailsPage/ui/ArticleDetailsPage/ArticleDetailsPage.tsx index 2f89845a..c1372d39 100644 --- a/src/pages/ArticleDetailsPage/ui/ArticleDetailsPage/ArticleDetailsPage.tsx +++ b/src/pages/ArticleDetailsPage/ui/ArticleDetailsPage/ArticleDetailsPage.tsx @@ -88,7 +88,6 @@ export const ArticleDetailsPage = memo((props: ArticleDetailsPageProps) => { className={cls.recommendations} articles={recommendations} isLoading={recommendationsIsLoading} - /* eslint-disable-next-line i18next/no-literal-string */ target="_blank" />