From f5a2fb174012f3698cb92987cd4004ebd9fdb903 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Fri, 25 Oct 2024 09:52:52 +0200 Subject: [PATCH] chore: fix linting issues --- src/lib/components/modals/SortModal.svelte | 1 - src/lib/components/modals/TransformModal.svelte | 1 - src/lib/components/modes/JSONEditorRoot.svelte | 3 --- src/lib/components/modes/tablemode/ColumnHeader.svelte | 1 - src/lib/components/modes/tablemode/TableMode.svelte | 1 - src/lib/components/modes/treemode/TreeMode.svelte | 1 - 6 files changed, 8 deletions(-) diff --git a/src/lib/components/modals/SortModal.svelte b/src/lib/components/modals/SortModal.svelte index 7d77046b..5076abd0 100644 --- a/src/lib/components/modals/SortModal.svelte +++ b/src/lib/components/modals/SortModal.svelte @@ -45,7 +45,6 @@ $: { // remember the selected values for the next time we open the SortModal // just in memory, not persisted - // eslint-disable-next-line svelte/valid-compile sortModalStates[stateId] = { selectedProperty, selectedDirection diff --git a/src/lib/components/modals/TransformModal.svelte b/src/lib/components/modals/TransformModal.svelte index e327b80a..4f59aaea 100644 --- a/src/lib/components/modals/TransformModal.svelte +++ b/src/lib/components/modals/TransformModal.svelte @@ -154,7 +154,6 @@ $: { // remember the selected values for the next time we open the SortModal // just in memory, not persisted - // eslint-disable-next-line svelte/valid-compile transformModalStates[stateId] = { queryOptions, query, diff --git a/src/lib/components/modes/JSONEditorRoot.svelte b/src/lib/components/modes/JSONEditorRoot.svelte index 377d5720..2c8e7bbd 100644 --- a/src/lib/components/modes/JSONEditorRoot.svelte +++ b/src/lib/components/modes/JSONEditorRoot.svelte @@ -81,7 +81,6 @@ type: 'button', text: 'text', title: `Switch to text mode (current mode: ${mode})`, - // eslint-disable-next-line svelte/valid-compile className: 'jse-group-button jse-first' + (mode === Mode.text ? ' jse-selected' : ''), onClick: () => onChangeMode(Mode.text) }, @@ -89,7 +88,6 @@ type: 'button', text: 'tree', title: `Switch to tree mode (current mode: ${mode})`, - // eslint-disable-next-line svelte/valid-compile className: 'jse-group-button ' + (mode === Mode.tree ? ' jse-selected' : ''), onClick: () => onChangeMode(Mode.tree) }, @@ -97,7 +95,6 @@ type: 'button', text: 'table', title: `Switch to table mode (current mode: ${mode})`, - // eslint-disable-next-line svelte/valid-compile className: 'jse-group-button jse-last' + (mode === Mode.table ? ' jse-selected' : ''), onClick: () => onChangeMode(Mode.table) } diff --git a/src/lib/components/modes/tablemode/ColumnHeader.svelte b/src/lib/components/modes/tablemode/ColumnHeader.svelte index c7f026ce..2d7b631c 100644 --- a/src/lib/components/modes/tablemode/ColumnHeader.svelte +++ b/src/lib/components/modes/tablemode/ColumnHeader.svelte @@ -21,7 +21,6 @@ $: sortDirection = sortedColumn && isEqual(path, sortedColumn?.path) ? sortedColumn.sortDirection : undefined - // eslint-disable-next-line svelte/valid-compile $: sortDirectionName = sortDirection ? SORT_DIRECTION_NAMES[sortDirection] : undefined function handleSort() { diff --git a/src/lib/components/modes/tablemode/TableMode.svelte b/src/lib/components/modes/tablemode/TableMode.svelte index 747901ed..d350058a 100644 --- a/src/lib/components/modes/tablemode/TableMode.svelte +++ b/src/lib/components/modes/tablemode/TableMode.svelte @@ -369,7 +369,6 @@ let context: JSONEditorContext $: context = { - // eslint-disable-next-line svelte/valid-compile mode: Mode.table, readOnly, parser, diff --git a/src/lib/components/modes/treemode/TreeMode.svelte b/src/lib/components/modes/treemode/TreeMode.svelte index c1620f9c..59328211 100644 --- a/src/lib/components/modes/treemode/TreeMode.svelte +++ b/src/lib/components/modes/treemode/TreeMode.svelte @@ -1810,7 +1810,6 @@ // it should only change when a config option like readOnly or onClassName is changed let context: TreeModeContext $: context = { - // eslint-disable-next-line svelte/valid-compile mode: Mode.tree, readOnly, parser,