From 68a867f1ed8e54287d578fb798e5770f7230c1a0 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 27 Mar 2024 10:21:30 +0100 Subject: [PATCH] chore: fix linting issues --- .../controls/ValidationErrorsOverview.scss | 2 +- .../controls/ValidationErrorsOverview.svelte | 16 ++++++++-------- .../modes/treemode/ValidationErrorIcon.scss | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/components/controls/ValidationErrorsOverview.scss b/src/lib/components/controls/ValidationErrorsOverview.scss index 5905d3e7..d57155e5 100644 --- a/src/lib/components/controls/ValidationErrorsOverview.scss +++ b/src/lib/components/controls/ValidationErrorsOverview.scss @@ -71,4 +71,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/lib/components/controls/ValidationErrorsOverview.svelte b/src/lib/components/controls/ValidationErrorsOverview.svelte index fced3763..260eab58 100644 --- a/src/lib/components/controls/ValidationErrorsOverview.svelte +++ b/src/lib/components/controls/ValidationErrorsOverview.svelte @@ -29,14 +29,14 @@ } function getValidationClass(errors: ValidationError[]): string { - if (errors.some(e => e.severity === ValidationSeverity.error)) { - return 'error'; - } else if (errors.some(e => e.severity === ValidationSeverity.warning)) { - return 'warning'; - } else if (errors.some(e => e.severity === ValidationSeverity.info)) { - return 'info'; + if (errors.some((e) => e.severity === ValidationSeverity.error)) { + return 'error' + } else if (errors.some((e) => e.severity === ValidationSeverity.warning)) { + return 'warning' + } else if (errors.some((e) => e.severity === ValidationSeverity.info)) { + return 'info' } - return ''; + return '' } @@ -47,7 +47,7 @@ {#each limit(validationErrors, MAX_VALIDATION_ERRORS) as validationError, index} { // trigger on the next tick to prevent the editor not getting focus setTimeout(() => selectError(validationError)) diff --git a/src/lib/components/modes/treemode/ValidationErrorIcon.scss b/src/lib/components/modes/treemode/ValidationErrorIcon.scss index d01a090f..99f47977 100644 --- a/src/lib/components/modes/treemode/ValidationErrorIcon.scss +++ b/src/lib/components/modes/treemode/ValidationErrorIcon.scss @@ -32,4 +32,4 @@ button.jse-validation-warning { display: inline-flex; color: $warning-color; -} \ No newline at end of file +}