Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Dec 15, 2023
1 parent 217d6d5 commit c977cc3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/modes/textmode/StatusBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$: lineNumber = line ? line.number : undefined
let columnNumber: number | undefined
$: columnNumber = line !==undefined && pos !== undefined ? pos - line.from + 1 : undefined
$: columnNumber = line !== undefined && pos !== undefined ? pos - line.from + 1 : undefined
let charCount: number | undefined
$: charCount = editorState?.selection?.ranges?.reduce((count, range) => {
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils/jsonUtils.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { test, describe, expect } from 'vitest'
import type { JSONParser } from '$lib/types.js'
import { deepStrictEqual, strictEqual, deepEqual, throws } from 'assert'
import { LosslessNumber, parse, stringify } from 'lossless-json'
import {
Expand Down
8 changes: 2 additions & 6 deletions src/routes/development/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@
import { parse, stringify } from 'lossless-json'
import { truncate } from '$lib/utils/stringUtils.js'
import { parseJSONPath, stringifyJSONPath } from '$lib/utils/pathUtils.js'
import {
compileJSONPointer,
isJSONObject,
parseJSONPointer
} from 'immutable-json-patch'
import { compileJSONPointer, isJSONObject, parseJSONPointer } from 'immutable-json-patch'
import { toJSONContent } from '$lib/utils/jsonUtils.js'
import { isJSONContent, isTextContent } from '$lib'
Expand Down Expand Up @@ -447,7 +443,7 @@
})
}
function handleOpenFile (event: Event) {
function handleOpenFile(event: Event) {
const target = event.target as HTMLInputElement
console.log('loadFile', target.files)
Expand Down

0 comments on commit c977cc3

Please sign in to comment.