From 230437c6bfeda2278fd1387ce91abca3420ec8f1 Mon Sep 17 00:00:00 2001 From: Niklas Kiefer Date: Thu, 12 Oct 2023 13:56:04 +0200 Subject: [PATCH] chore(properties-panel): disable specific eslint rule --- .../properties-panel/PropertiesPanelHeaderProvider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/form-js-editor/src/features/properties-panel/PropertiesPanelHeaderProvider.js b/packages/form-js-editor/src/features/properties-panel/PropertiesPanelHeaderProvider.js index a78e876d8..bd3638e4b 100644 --- a/packages/form-js-editor/src/features/properties-panel/PropertiesPanelHeaderProvider.js +++ b/packages/form-js-editor/src/features/properties-panel/PropertiesPanelHeaderProvider.js @@ -42,7 +42,7 @@ export const PropertiesPanelHeaderProvider = { // @Note: We know that we are inside the properties panel context, // so we can savely use the hook here. - // eslint-disable-next-line + // eslint-disable-next-line react-hooks/rules-of-hooks const fieldDefinition = useService('formFields').get(type).config; const Icon = fieldDefinition.icon || iconsByType(type); @@ -65,7 +65,7 @@ export const PropertiesPanelHeaderProvider = { // @Note: We know that we are inside the properties panel context, // so we can savely use the hook here. - // eslint-disable-next-line + // eslint-disable-next-line react-hooks/rules-of-hooks const fieldDefinition = useService('formFields').get(type).config; return fieldDefinition.label || type;