From b44f9c6e85c9ab398ababd37f60cfcd09f1a0cdf Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Fri, 5 Apr 2024 16:37:54 +0200 Subject: [PATCH] chore: resolve linting issues --- src/cli/resolveOptions.ts | 2 +- src/metro.ts | 3 +-- webui/src/app/(atlas)/[entry]/folders/[path].tsx | 2 +- webui/src/app/(atlas)/[entry]/modules/[path].tsx | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/cli/resolveOptions.ts b/src/cli/resolveOptions.ts index 76cae0a..f7c95dd 100644 --- a/src/cli/resolveOptions.ts +++ b/src/cli/resolveOptions.ts @@ -2,7 +2,7 @@ import freeport from 'freeport-async'; import path from 'path'; import { type Input } from './bin'; -import { getAtlasPath, validateAtlasFile } from '../utils/stats'; +import { getAtlasPath, validateAtlasFile } from '../data/AtlasFileSource'; export type Options = Awaited>; diff --git a/src/metro.ts b/src/metro.ts index aa13092..f7132b4 100644 --- a/src/metro.ts +++ b/src/metro.ts @@ -1,8 +1,7 @@ import { type MetroConfig } from 'metro-config'; +import { createAtlasFile, getAtlasPath, writeAtlasEntry } from './data/AtlasFileSource'; import { convertGraph } from './data/MetroGraphSource'; -import { writeAtlasEntry } from './data/AtlasFileSource'; -import { createAtlasFile, getAtlasPath } from './utils/stats'; type ExpoAtlasOptions = Partial<{ /** The output of the stats file, defaults to `.expo/stats.json` */ diff --git a/webui/src/app/(atlas)/[entry]/folders/[path].tsx b/webui/src/app/(atlas)/[entry]/folders/[path].tsx index a42fff6..79eb525 100644 --- a/webui/src/app/(atlas)/[entry]/folders/[path].tsx +++ b/webui/src/app/(atlas)/[entry]/folders/[path].tsx @@ -8,9 +8,9 @@ import { ModuleFiltersForm } from '~/components/forms/ModuleFilter'; import { useEntry } from '~/providers/entries'; import { Tag } from '~/ui/Tag'; import { fetchApi } from '~/utils/api'; +import { relativeEntryPath } from '~/utils/entry'; import { type ModuleFilters, useModuleFilters, moduleFiltersToParams } from '~/utils/filters'; import { formatFileSize } from '~/utils/formatString'; -import { relativeEntryPath } from '~/utils/entry'; export default function FolderPage() { const { path: absolutePath } = useLocalSearchParams<{ path: string }>(); diff --git a/webui/src/app/(atlas)/[entry]/modules/[path].tsx b/webui/src/app/(atlas)/[entry]/modules/[path].tsx index a468dd5..4105bce 100644 --- a/webui/src/app/(atlas)/[entry]/modules/[path].tsx +++ b/webui/src/app/(atlas)/[entry]/modules/[path].tsx @@ -7,8 +7,8 @@ import { CodeBlock, CodeBlockSectionWithPrettier, guessLanguageFromPath } from ' import { Skeleton } from '~/ui/Skeleton'; import { Tag } from '~/ui/Tag'; import { fetchApi } from '~/utils/api'; -import { formatFileSize } from '~/utils/formatString'; import { relativeEntryPath } from '~/utils/entry'; +import { formatFileSize } from '~/utils/formatString'; import { type PartialAtlasEntry, type AtlasModule } from '~core/data/types'; export default function ModulePage() {