Skip to content

Commit

Permalink
chore: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Mar 27, 2024
1 parent eb01da1 commit 9e79eb0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/controls/ValidationErrorsOverview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@
}
}
}
}
}
16 changes: 8 additions & 8 deletions src/lib/components/controls/ValidationErrorsOverview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
}
</script>

Expand All @@ -47,7 +47,7 @@
<tbody>
{#each limit(validationErrors, MAX_VALIDATION_ERRORS) as validationError, index}
<tr
class="jse-validation-{validationError.severity}"
class="jse-validation-{validationError.severity}"
on:click={() => {
// trigger on the next tick to prevent the editor not getting focus
setTimeout(() => selectError(validationError))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/modes/treemode/ValidationErrorIcon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ button.jse-validation-warning {
display: inline-flex;

color: $warning-color;
}
}

0 comments on commit 9e79eb0

Please sign in to comment.