Skip to content

Commit

Permalink
chore: resolve linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Apr 5, 2024
1 parent 4542fbf commit ee6516b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/cli/resolveOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ReturnType<typeof resolveOptions>>;

Expand Down
9 changes: 4 additions & 5 deletions src/metro.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
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` */
statsFile: string;
/** The output of the atlas file, defaults to `.expo/stats.json` */
atlasFile: string;
}>;

/**
Expand All @@ -33,7 +32,7 @@ export function withExpoAtlas(config: MetroConfig, options: ExpoAtlasOptions = {
throw new Error('No "projectRoot" configured in Metro config.');
}

const statsFile = options?.statsFile ?? getAtlasPath(projectRoot);
const statsFile = options?.atlasFile ?? getAtlasPath(projectRoot);
const extensions = {
source: config.resolver?.sourceExts,
asset: config.resolver?.assetExts,
Expand Down
2 changes: 1 addition & 1 deletion webui/src/app/(atlas)/[entry]/folders/[path].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>();
Expand Down
2 changes: 1 addition & 1 deletion webui/src/app/(atlas)/[entry]/modules/[path].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ee6516b

Please sign in to comment.