Skip to content

Commit 4f9b534

Browse files
committed
style: pnpm fmt
1 parent 77b59ad commit 4f9b534

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

js/showcase/src/case.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ export type PropKind = PropDef["kind"];
5959

6060
export interface CaseDef<TComponent> {
6161
props: Record<string, Exclude<PropKind, "raw"> | PropDef>;
62-
slots?: Record<string, Exclude<PropKind, "raw" | "function" | "callback"> | Exclude<PropDef, { kind: "function" | "callback" }>>;
62+
slots?: Record<
63+
string,
64+
| Exclude<PropKind, "raw" | "function" | "callback">
65+
| Exclude<PropDef, { kind: "function" | "callback" }>
66+
>;
6367
component: TComponent;
6468
}
6569

js/showcase/src/field.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const PROP_KIND_DEFAULTS: { [K in PropKind]: any } = {
1313
function: () => {},
1414
};
1515

16-
type NormalizedProps = Required<PropDef> & { id: string; };
16+
type NormalizedProps = Required<PropDef> & { id: string };
1717

1818
function normalizeProp(
1919
propName: string,
@@ -59,7 +59,7 @@ export function normalizeProps(
5959
export function prepareProps(
6060
props: CaseDef<unknown>["props"],
6161
slots: CaseDef<unknown>["slots"],
62-
showcaseDef: ShowcaseDef<unknown, unknown>,
62+
showcaseDef: ShowcaseDef<unknown, unknown>
6363
): {
6464
defs: ShowcaseFieldProps[];
6565
componentProps: Record<string, MiniUI.Signal<unknown>>;

js/showcase/vite.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ export default defineConfig({
2424
formats: ["es"],
2525
},
2626
rollupOptions: {
27-
external: ["react", "react/jsx-runtime", "react-dom", "react-dom/client", "vue"],
27+
external: [
28+
"react",
29+
"react/jsx-runtime",
30+
"react-dom",
31+
"react-dom/client",
32+
"vue",
33+
],
2834
input: Object.fromEntries(
2935
// https://rollupjs.org/configuration-options/#input
3036
glob

0 commit comments

Comments
 (0)