Skip to content

Commit

Permalink
chore: resolve linting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Dec 5, 2024
1 parent 1df771f commit 8d74839
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 22 deletions.
3 changes: 0 additions & 3 deletions src/lib/components/modals/SortModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
$: {
// remember the selected values for the next time we open the SortModal
// just in memory, not persisted
// eslint-disable-next-line svelte/no-unused-svelte-ignore
// svelte-ignore reactive_declaration_non_reactive_property
// eslint-disable-next-line svelte/valid-compile
sortModalStates[stateId] = {
selectedProperty,
selectedDirection
Expand Down
3 changes: 0 additions & 3 deletions src/lib/components/modals/TransformModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@
$: {
// remember the selected values for the next time we open the SortModal
// just in memory, not persisted
// eslint-disable-next-line svelte/no-unused-svelte-ignore
// svelte-ignore reactive_declaration_non_reactive_property
// eslint-disable-next-line svelte/valid-compile
transformModalStates[stateId] = {
queryOptions,
query,
Expand Down
9 changes: 0 additions & 9 deletions src/lib/components/modes/JSONEditorRoot.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -155,29 +155,20 @@
type: 'button',
text: 'text',
title: `Switch to text mode (current mode: ${mode})`,
// eslint-disable-next-line svelte/no-unused-svelte-ignore
// svelte-ignore reactive_declaration_non_reactive_property
// eslint-disable-next-line svelte/valid-compile
className: 'jse-group-button jse-first' + (mode === Mode.text ? ' jse-selected' : ''),
onClick: () => onChangeMode(Mode.text)
},
{
type: 'button',
text: 'tree',
title: `Switch to tree mode (current mode: ${mode})`,
// eslint-disable-next-line svelte/no-unused-svelte-ignore
// svelte-ignore reactive_declaration_non_reactive_property
// eslint-disable-next-line svelte/valid-compile
className: 'jse-group-button ' + (mode === Mode.tree ? ' jse-selected' : ''),
onClick: () => onChangeMode(Mode.tree)
},
{
type: 'button',
text: 'table',
title: `Switch to table mode (current mode: ${mode})`,
// eslint-disable-next-line svelte/no-unused-svelte-ignore
// svelte-ignore reactive_declaration_non_reactive_property
// eslint-disable-next-line svelte/valid-compile
className: 'jse-group-button jse-last' + (mode === Mode.table ? ' jse-selected' : ''),
onClick: () => onChangeMode(Mode.table)
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/components/modes/tablemode/ColumnHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
$: sortDirection =
sortedColumn && isEqual(path, sortedColumn?.path) ? sortedColumn.sortDirection : undefined
// svelte-ignore reactive_declaration_non_reactive_property
$: sortDirectionName = sortDirection ? SORT_DIRECTION_NAMES[sortDirection] : undefined
function handleSort() {
Expand Down
3 changes: 0 additions & 3 deletions src/lib/components/modes/tablemode/TableMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,6 @@
let context: JSONEditorContext
$: context = {
// eslint-disable-next-line svelte/no-unused-svelte-ignore
// svelte-ignore reactive_declaration_non_reactive_property
// eslint-disable-next-line svelte/valid-compile
mode: Mode.table,
readOnly,
parser,
Expand Down
3 changes: 0 additions & 3 deletions src/lib/components/modes/treemode/TreeMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1827,9 +1827,6 @@
// it should only change when a config option like readOnly or onClassName is changed
let context: TreeModeContext
$: context = {
// eslint-disable-next-line svelte/no-unused-svelte-ignore
// svelte-ignore reactive_declaration_non_reactive_property
// eslint-disable-next-line svelte/valid-compile
mode: Mode.tree,
readOnly,
parser,
Expand Down

0 comments on commit 8d74839

Please sign in to comment.