Skip to content

Commit 30708db

Browse files
committed
style: pnpm fmt
1 parent b6afb8b commit 30708db

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

js/showcase/src/vue/ErrorBoundary.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ErrorsDef, ErrorStack } from "../error";
88

99
export function createErrorBoundary(
1010
render: () => VNode,
11-
renderErrors: (error: ErrorsDef) => VNode,
11+
renderErrors: (error: ErrorsDef) => VNode
1212
): VNode {
1313
return vueH(ErrorBoundary, { render, renderErrors });
1414
}
@@ -24,10 +24,11 @@ const ErrorBoundary = defineComponent<{
2424
}>({
2525
name: "ErrorBoundary",
2626
props: ["render", "renderErrors"],
27-
data: () => ({
28-
hasError: false,
29-
errorsDef: null as ErrorsDef | null,
30-
} as ErrorBoundaryData),
27+
data: () =>
28+
({
29+
hasError: false,
30+
errorsDef: null as ErrorsDef | null,
31+
}) as ErrorBoundaryData,
3132
setup({ render, renderErrors }) {
3233
return (ctx: ErrorBoundary) =>
3334
ctx.$data.hasError && ctx.$data.errorsDef != null
@@ -89,7 +90,7 @@ function errorToDef(error: Error): ErrorsDef {
8990
) ?? [, source, "", ""];
9091

9192
if (sourceFile.endsWith("vue.js?")) {
92-
return
93+
return;
9394
}
9495

9596
return {

js/vue/lib/components/rs-button.showcase.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const props = {
88
default: "primary",
99
options: ["primary", "secondary", "text", "icon"],
1010
},
11-
onClick: "callback"
11+
onClick: "callback",
1212
};
1313
const slots = {
1414
default: {

0 commit comments

Comments
 (0)