From 18de6ccb5936d9a63e9483b17e29e47638102139 Mon Sep 17 00:00:00 2001 From: Andrew Varga Date: Tue, 22 Apr 2025 15:15:38 +0200 Subject: [PATCH] #6417 Fix svg attribute names, add new eslint rule (#6418) * fix svg attribute names, add new eslint rule * tabs -> spaces --- .eslintrc.json | 6 ++++++ src/components/CustomIcon.tsx | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index e60b0800e..a7830ff36 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,6 +19,11 @@ "plugin:jsx-a11y/recommended", "plugin:react-hooks/recommended" ], + "settings": { + "react": { + "version": "detect" + } + }, "rules": { "no-array-constructor": "off", // This is wrong; use the @typescript-eslint one instead. "@typescript-eslint/no-array-constructor": "error", @@ -61,6 +66,7 @@ "jsx-a11y/click-events-have-key-events": "off", "jsx-a11y/no-autofocus": "off", "jsx-a11y/no-noninteractive-element-interactions": "off", + "react/no-unknown-property": "error", "no-restricted-globals": [ "error", { diff --git a/src/components/CustomIcon.tsx b/src/components/CustomIcon.tsx index 49c0b3222..24f93c927 100644 --- a/src/components/CustomIcon.tsx +++ b/src/components/CustomIcon.tsx @@ -628,8 +628,8 @@ const CustomIconMap = { xmlns="http://www.w3.org/2000/svg" >