mirror of
https://github.com/Kong/insomnia.git
synced 2026-08-04 11:52:33 -04:00
chore: fixes imports order
This commit is contained in:
@@ -84,7 +84,7 @@ async function flattenRuleset(filePath: string, visited: Set<string>, depth: num
|
||||
// - include them later in the final "extends" array
|
||||
for (const entry of toArray(ruleset.extends)) {
|
||||
if (Array.isArray(entry)) {
|
||||
throw new Error(
|
||||
throw new TypeError(
|
||||
`Failed to process "extends" entry ${JSON.stringify(entry)}: tuple format (e.g. [path, severity]) is not supported. Use a plain string instead.`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -29,8 +29,11 @@ import YAML from 'yaml';
|
||||
import { parseApiSpec } from '~/common/api-specs';
|
||||
import { DEFAULT_SIDEBAR_SIZE } from '~/common/constants';
|
||||
import { debounce } from '~/common/misc';
|
||||
import { selectFileOrFolder } from '~/common/select-file-or-folder';
|
||||
import { models, services } from '~/insomnia-data';
|
||||
import { useRootLoaderData } from '~/root';
|
||||
import { useDeleteProjectRulesetActionFetcher } from '~/routes/organization.$organizationId.project.$projectId.delete-ruleset';
|
||||
import { useUpdateProjectRulesetActionFetcher } from '~/routes/organization.$organizationId.project.$projectId.update-ruleset';
|
||||
import {
|
||||
useWorkspaceLoaderData,
|
||||
WORKSPACE_CONTENT_WRAPPER,
|
||||
@@ -60,9 +63,6 @@ import { useGitVCSVersion } from '~/ui/hooks/use-vcs-version';
|
||||
import { DEFAULT_STORAGE_RULES } from '~/ui/organization-utils';
|
||||
|
||||
import type { Route } from './+types/organization.$organizationId.project.$projectId.workspace.$workspaceId.spec';
|
||||
import { useUpdateProjectRulesetActionFetcher } from '~/routes/organization.$organizationId.project.$projectId.update-ruleset';
|
||||
import { useDeleteProjectRulesetActionFetcher } from '~/routes/organization.$organizationId.project.$projectId.delete-ruleset';
|
||||
import { selectFileOrFolder } from '~/common/select-file-or-folder';
|
||||
|
||||
export async function clientLoader({ params }: Route.ClientLoaderArgs) {
|
||||
const { organizationId, projectId, workspaceId } = params;
|
||||
|
||||
@@ -42,6 +42,7 @@ import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
import { BrowserWindow } from 'electron';
|
||||
import YAML from 'yaml';
|
||||
|
||||
import type { Workspace, WorkspaceMeta } from '~/insomnia-data';
|
||||
import { models, services } from '~/insomnia-data';
|
||||
@@ -51,7 +52,6 @@ import { database as db } from '../../common/database';
|
||||
import { InsomniaFileTypeValues } from '../../common/import-v5-parser';
|
||||
import { getInsomniaV5DataExport, tryImportV5Data } from '../../common/insomnia-v5';
|
||||
import { SyncQueue } from './sync-queue';
|
||||
import YAML from 'yaml';
|
||||
|
||||
const POLL_INTERVAL_MS = 10_000;
|
||||
const DEBOUNCE_MS = 300;
|
||||
|
||||
Reference in New Issue
Block a user