From b20698ecb2a3054c0d21f882640bc194cda24216 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 2 Sep 2023 10:38:20 +0200 Subject: [PATCH] Re-enable a11y linting rules --- .eslintrc | 4 ---- src/servers/DeleteServerButton.tsx | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.eslintrc b/.eslintrc index ac4978bc..8371c72d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -8,10 +8,6 @@ }, "ignorePatterns": ["src/service*.ts"], "rules": { - "jsx-a11y/control-has-associated-label": "off", - "jsx-a11y/label-has-associated-control": "off", - "jsx-a11y/click-events-have-key-events": "off", - "jsx-a11y/no-static-element-interactions": "off", "react-hooks/rules-of-hooks": "off", "react-hooks/exhaustive-deps": "off" } diff --git a/src/servers/DeleteServerButton.tsx b/src/servers/DeleteServerButton.tsx index 86bcc46c..651f6561 100644 --- a/src/servers/DeleteServerButton.tsx +++ b/src/servers/DeleteServerButton.tsx @@ -18,7 +18,7 @@ export const DeleteServerButton = (DeleteServerModal: FC return ( <> - + {!children && } {children ?? 'Remove this server'}