Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yagebu committed Nov 24, 2024
1 parent 3b88766 commit ea970fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export default tseslint.config(
},
rules: {
"svelte/button-has-type": ON,
// Has some false positives in Svelte files were we have if()
// checks to trigger re-computations:
"@typescript-eslint/no-unnecessary-condition": OFF,
},
},
);
2 changes: 1 addition & 1 deletion frontend/src/charts/SelectCombobox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/** Whether the list of options in the Combobox popup is hidden. */
let hidden = $state(true);
/** The index of the option that is currently focused */
let index = $state(options.indexOf(value) ?? 0);
let index = $state(options.indexOf(value));
/** The popup list element. */
let ul: HTMLUListElement | undefined = $state();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/reports/editor/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
);
// update editor contents if source changes
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions, @typescript-eslint/no-unnecessary-condition
$: if (source) {
editor.dispatch(replaceContents(editor.state, source.source));
sha256sum = source.sha256sum;
Expand Down

0 comments on commit ea970fa

Please sign in to comment.