Skip to content

Commit 7dbfa1e

Browse files
committed
Lint nits
1 parent c1aefcb commit 7dbfa1e

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/cli.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ import { meowWithSubcommands } from './utils/meow-with-subcommands'
1616
const { rootPkgJsonPath } = constants
1717

1818
const formattedCliCommands = Object.fromEntries(
19-
Object.entries(cliCommands)
20-
.map(entry => {
21-
const key = entry[0]
22-
entry[0] = camelToHyphen(key)
23-
return entry
24-
})
19+
Object.entries(cliCommands).map(entry => {
20+
const key = entry[0]
21+
entry[0] = camelToHyphen(key)
22+
return entry
23+
})
2524
)
2625

2726
function camelToHyphen(str: string): string {

src/utils/meow-with-subcommands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ export async function meowWithSubcommands(
7575
{
7676
...toSortedObject(
7777
Object.fromEntries(
78-
Object.entries(subcommands)
79-
.filter(entry => !entry[1].hidden)
78+
Object.entries(subcommands).filter(entry => !entry[1].hidden)
8079
)
8180
),
8281
...toSortedObject(
8382
Object.fromEntries(
84-
Object.entries(aliases)
85-
.filter(entry => !subcommands[entry[1]?.argv[0]!]?.hidden)
83+
Object.entries(aliases).filter(
84+
entry => !subcommands[entry[1]?.argv[0]!]?.hidden
85+
)
8686
)
8787
)
8888
},

0 commit comments

Comments
 (0)