diff --git a/.eslintrc.json b/.eslintrc.json index 65affdc01d5..eecd3d05706 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -21,6 +21,10 @@ "version": "detect" } }, + "rules": { + // Enforce consistent brace style for all control statements for readability + "curly": "error" + }, "globals": { "cy": true, "before": true, diff --git a/extensions/cornerstone-dicom-seg/src/viewports/_getStatusComponent.tsx b/extensions/cornerstone-dicom-seg/src/viewports/_getStatusComponent.tsx index f9614f8066e..d491faa6e14 100644 --- a/extensions/cornerstone-dicom-seg/src/viewports/_getStatusComponent.tsx +++ b/extensions/cornerstone-dicom-seg/src/viewports/_getStatusComponent.tsx @@ -2,13 +2,12 @@ import React from 'react'; import { useTranslation } from 'react-i18next'; import { Icon, Tooltip } from '@ohif/ui'; - export default function _getStatusComponent({ isHydrated, onStatusClick }) { let ToolTipMessage = null; let StatusIcon = null; - const {t} = useTranslation("Common"); - const loadStr = t("LOAD"); + const { t } = useTranslation('Common'); + const loadStr = t('LOAD'); switch (isHydrated) { case true: @@ -18,7 +17,7 @@ export default function _getStatusComponent({ isHydrated, onStatusClick }) {