Skip to content

Commit 3d5f1f7

Browse files
committed
fix lint
1 parent 1dbb138 commit 3d5f1f7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/cli/lib/install.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,10 @@ async function runAddon({ addon, multiple, workspace }: RunAddon) {
184184
// This is a drastic simplification, as this could still cause some inconvenient cituations,
185185
// but works for now in contrary to the previous implementation
186186
function orderAddons(addons: Array<Addon<any>>, setupResults: Record<string, AddonSetupResult>) {
187-
return addons.sort(
188-
(a, b) => {
189-
// Adding storybook last means it will correctly detect and integrate with other addons like vitest and eslint
190-
if (a.id === 'storybook') return 1;
191-
if (b.id === 'storybook') return -1;
192-
return setupResults[a.id]?.dependsOn?.length - setupResults[b.id]?.dependsOn?.length;
193-
}
194-
);
187+
return addons.sort((a, b) => {
188+
// Adding storybook last means it will correctly detect and integrate with other addons like vitest and eslint
189+
if (a.id === 'storybook') return 1;
190+
if (b.id === 'storybook') return -1;
191+
return setupResults[a.id]?.dependsOn?.length - setupResults[b.id]?.dependsOn?.length;
192+
});
195193
}

0 commit comments

Comments
 (0)