diff --git a/package.json b/package.json index 1cfac923..0b2f3c79 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "build:vanilla:copy:readme": "cpy --rename README.md README-VANILLA.md package-vanilla", "build:vanilla:copy:themes": "cpy --flat src/lib/themes package-vanilla/themes", "build:vanilla:package-json": "node tools/createVanillaPackageJson.js", - "build-and-test": "npm run test-ci && npm run lint && npm run build", + "build-and-test": "npm run test-ci && npm run check && npm run lint && npm run build", "test": "vitest", "test-ci": "vitest run", "coverage": "vitest run --coverage", @@ -62,6 +62,7 @@ "release": "npm-run-all release:**", "release:lint": "npm run lint", "release:test": "npm run test-ci", + "release:check": "npm run check", "release:version": "standard-version", "release:build": "npm run build", "release:push": "git push && git push --tag", diff --git a/src/lib/components/modes/tablemode/TableMode.svelte b/src/lib/components/modes/tablemode/TableMode.svelte index 23e2ba27..3c4297c9 100644 --- a/src/lib/components/modes/tablemode/TableMode.svelte +++ b/src/lib/components/modes/tablemode/TableMode.svelte @@ -37,7 +37,13 @@ import { Mode, SortDirection, ValidationSeverity } from '$lib/types.js' import TableMenu from './menu/TableMenu.svelte' import type { JSONPatchDocument, JSONPath } from 'immutable-json-patch' - import { compileJSONPointer, existsIn, getIn, immutableJSONPatch, isJSONArray } from 'immutable-json-patch' + import { + compileJSONPointer, + existsIn, + getIn, + immutableJSONPatch, + isJSONArray + } from 'immutable-json-patch' import { isTextContent, normalizeJsonParseError, @@ -107,7 +113,12 @@ import memoizeOne from 'memoize-one' import { validateJSON } from '$lib/logic/validation.js' import ValidationErrorsOverview from '../../controls/ValidationErrorsOverview.svelte' - import { CONTEXT_MENU_HEIGHT, CONTEXT_MENU_WIDTH, SCROLL_DURATION, SIMPLE_MODAL_OPTIONS } from '$lib/constants.js' + import { + CONTEXT_MENU_HEIGHT, + CONTEXT_MENU_WIDTH, + SCROLL_DURATION, + SIMPLE_MODAL_OPTIONS + } from '$lib/constants.js' import { noop } from '$lib/utils/noop.js' import { createJump } from '$lib/assets/jump.js/src/jump.js' import ValidationErrorIcon from '../treemode/ValidationErrorIcon.svelte' @@ -1761,7 +1772,10 @@ {#if !isEmpty(groupedValidationErrors?.root)} - {@const validationError = mergeValidationErrors([], groupedValidationErrors?.root)} + {@const validationError = mergeValidationErrors( + [], + groupedValidationErrors?.root + )} {#if validationError}
@@ -1795,7 +1809,10 @@ {#each visibleSection.visibleItems as item, visibleIndex} {@const rowIndex = visibleSection.startIndex + visibleIndex} {@const validationErrorsByRow = groupedValidationErrors.rows[rowIndex]} - {@const validationError = mergeValidationErrors([String(rowIndex)], validationErrorsByRow?.row)} + {@const validationError = mergeValidationErrors( + [String(rowIndex)], + validationErrorsByRow?.row + )} {#key rowIndex}