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 Oct 22, 2024
1 parent 5fe2588 commit be9d9dc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/components/modals/SortModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
$: {
// 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
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/modals/TransformModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
$: {
// 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,
Expand Down
3 changes: 3 additions & 0 deletions src/lib/components/modes/JSONEditorRoot.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,23 @@
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)
},
{
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)
},
{
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)
}
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/modes/tablemode/ColumnHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
$: 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() {
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/modes/tablemode/TableMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@
let context: JSONEditorContext
$: context = {
// eslint-disable-next-line svelte/valid-compile
mode: Mode.table,
readOnly,
parser,
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/modes/treemode/TreeMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,7 @@
// 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,
Expand Down

0 comments on commit be9d9dc

Please sign in to comment.