Skip to content

Commit 2fb2473

Browse files
committed
Lint nit
1 parent af8e530 commit 2fb2473

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/utils/meow-with-subcommands.mts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import meow from 'meow'
22
import semver from 'semver'
33
import colors from 'yoctocolors-cjs'
44

5+
import { joinAnd } from '@socketsecurity/registry/lib/arrays'
56
import { logger } from '@socketsecurity/registry/lib/logger'
67
import { toSortedObject } from '@socketsecurity/registry/lib/objects'
78
import { normalizePath } from '@socketsecurity/registry/lib/path'
@@ -22,7 +23,6 @@ import { tildify } from './tildify.mts'
2223

2324
import type { MeowFlags } from '../flags.mts'
2425
import type { Options, Result } from 'meow'
25-
import { joinAnd } from '@socketsecurity/registry/lib/arrays'
2626

2727
interface CliAlias {
2828
description: string
@@ -296,7 +296,11 @@ export async function meowWithSubcommands(
296296
'Found commands in the list that were not marked as public or not defined at all:',
297297
// Node < 22 will print 'Object (n)' before the array. So to have
298298
// consistent test snapshots we use joinAnd.
299-
joinAnd(Array.from(commands).sort(naturalCompare).map(c => `'${c}'`)),
299+
joinAnd(
300+
Array.from(commands)
301+
.sort(naturalCompare)
302+
.map(c => `'${c}'`),
303+
),
300304
)
301305
}
302306

0 commit comments

Comments
 (0)