diff --git a/packages/frontend/.storybook/generate.tsx b/packages/frontend/.storybook/generate.tsx
index d444cea8b..f2c87016c 100644
--- a/packages/frontend/.storybook/generate.tsx
+++ b/packages/frontend/.storybook/generate.tsx
@@ -105,51 +105,35 @@ function toStories(component: string): string {
const hasMetaStories = existsSync(`${metaStories}.ts`);
const base = basename(component);
const dir = dirname(component);
- const literal = (
+ const literal =
- ) as estree.Literal;
- const identifier = (
+ /> as estree.Literal;
+ const identifier =
- ) as estree.Identifier;
+ /> as estree.Identifier;
const parameters = (
) as estree.Identifier}
- value={
- (
-
- ) as estree.Literal
- }
- kind={'init' as const}
- />
- ) as estree.Property,
+ as estree.Identifier}
+ value={ as estree.Literal}
+ kind={'init' as const}
+ /> as estree.Property,
...(hasMsw
? [
- (
- ) as estree.Identifier}
- value={() as estree.Identifier}
- kind={'init' as const}
- shorthand
- />
- ) as estree.Property,
+ as estree.Identifier}
+ value={ as estree.Identifier}
+ kind={'init' as const}
+ shorthand
+ /> as estree.Property,
]
: []),
]}
@@ -158,447 +142,242 @@ function toStories(component: string): string {
const program = (
) as estree.Literal}
- specifiers={[
- (
- ) as estree.Identifier}
- imported={() as estree.Identifier}
- />
- ) as estree.ImportSpecifier,
- ...(hasImplStories
- ? []
- : [
- (
- ) as estree.Identifier
- }
- imported={
- () as estree.Identifier
- }
- />
- ) as estree.ImportSpecifier,
- ]),
- ]}
- />
- ) as estree.ImportDeclaration,
+ as estree.Literal}
+ specifiers={[
+ as estree.Identifier}
+ imported={ as estree.Identifier}
+ /> as estree.ImportSpecifier,
+ ...(hasImplStories
+ ? []
+ : [
+ as estree.Identifier}
+ imported={ as estree.Identifier}
+ /> as estree.ImportSpecifier,
+ ]),
+ ]}
+ /> as estree.ImportDeclaration,
...(hasMsw
? [
- (
- ) as estree.Literal
- }
- specifiers={[
- (
- ) as estree.Identifier}
- />
- ) as estree.ImportNamespaceSpecifier,
- ]}
- />
- ) as estree.ImportDeclaration,
+ as estree.Literal}
+ specifiers={[
+ as estree.Identifier}
+ /> as estree.ImportNamespaceSpecifier,
+ ]}
+ /> as estree.ImportDeclaration,
]
: []),
...(hasImplStories
? []
: [
- (
- ) as estree.Literal}
- specifiers={[
- (
-
- ) as estree.ImportDefaultSpecifier,
- ]}
- />
- ) as estree.ImportDeclaration,
+ as estree.Literal}
+ specifiers={[
+ as estree.ImportDefaultSpecifier,
+ ]}
+ /> as estree.ImportDeclaration,
]),
...(hasMetaStories
? [
- (
- ) as estree.Literal
- }
- specifiers={[
- (
- ) as estree.Identifier}
- />
- ) as estree.ImportNamespaceSpecifier,
- ]}
- />
- ) as estree.ImportDeclaration,
+ as estree.Literal}
+ specifiers={[
+ as estree.Identifier}
+ /> as estree.ImportNamespaceSpecifier,
+ ]}
+ /> as estree.ImportDeclaration,
]
: []),
- (
- ) as estree.Identifier}
- init={
- (
-
- ) as estree.Identifier
- }
- value={literal}
- kind={'init' as const}
- />
- ) as estree.Property,
- (
-
- ) as estree.Identifier
- }
- value={identifier}
- kind={'init' as const}
- />
- ) as estree.Property,
- ...(hasMetaStories
- ? [
- (
-
- ) as estree.Identifier
- }
- />
- ) as estree.SpreadElement,
- ]
- : [])
- ]}
- />
- ) as estree.ObjectExpression
- }
- reference={
- (
- `}
- />
- ) as estree.Identifier
- }
- />
- ) as estree.Expression
+ as estree.Identifier}
+ init={
+ as estree.Identifier}
+ value={literal}
+ kind={'init' as const}
+ /> as estree.Property,
+ as estree.Identifier}
+ value={identifier}
+ kind={'init' as const}
+ /> as estree.Property,
+ ...(hasMetaStories
+ ? [
+ as estree.Identifier}
+ /> as estree.SpreadElement,
+ ]
+ : [])
+ ]}
+ /> as estree.ObjectExpression
}
- />
- ) as estree.VariableDeclarator,
- ]}
- />
- ) as estree.VariableDeclaration,
+ reference={`} /> as estree.Identifier}
+ /> as estree.Expression
+ }
+ /> as estree.VariableDeclarator,
+ ]}
+ /> as estree.VariableDeclaration,
...(hasImplStories
? []
: [
- (
-
- ) as estree.Identifier
- }
- init={
- (
-
- ) as estree.Identifier
- }
- value={
- (
-
- ) as estree.Identifier,
- ]}
- body={
- (
- as estree.Identifier}
+ init={
+ as estree.Identifier}
+ value={
+ as estree.Identifier,
+ ]}
+ body={
+ as estree.Identifier}
+ value={
+ as estree.Property,
+ ]}
+ /> as estree.ObjectExpression
+ }
+ kind={'init' as const}
+ /> as estree.Property,
+ as estree.Identifier}
+ value={
+
- ) as estree.Identifier
- }
- value={
- (
-
- ) as estree.Property,
- ]}
- />
- ) as estree.ObjectExpression
- }
- kind={
- 'init' as const
- }
- />
- ) as estree.Property,
- (
-
- ) as estree.Identifier
- }
- value={
- (
-
- ) as estree.Identifier
- }
- value={
- (
-
- ) as estree.Identifier
- }
- kind={
- 'init' as const
- }
- shorthand
- />
- ) as estree.Property,
- ]}
- />
- ) as estree.ObjectExpression
- }
- />
- ) as estree.ReturnStatement,
- ]}
- />
- ) as estree.BlockStatement
- }
- />
- ) as estree.FunctionExpression
- }
- method
- kind={
- 'init' as const
- }
- />
- ) as estree.Property,
- (
-
- ) as estree.Identifier
- }
- value={
- (
-
- ) as estree.Identifier
- }
- value={
- (
-
- ) as estree.ThisExpression
- }
- property={
- (
-
- ) as estree.Identifier
- }
- />
- ) as estree.MemberExpression
- }
- />
- ) as estree.SpreadElement,
- ]}
- />
- ) as estree.ObjectExpression
- }
- />
- ) as estree.ReturnStatement,
- ]}
- />
- ) as estree.BlockStatement
- }
- />
- ) as estree.FunctionExpression
- }
- method
- kind={
- 'init' as const
- }
- />
- ) as estree.Property,
- ]}
- />
- ) as estree.ObjectExpression
- }
- kind={
- 'init' as const
- }
- />
- ) as estree.Property,
- (
-
- ) as estree.Identifier
- }
- value={
- (
- `}
- />
- ) as estree.Literal
- }
- kind={
- 'init' as const
- }
- />
- ) as estree.Property,
+ as estree.Identifier}
+ value={ as estree.Identifier}
+ kind={'init' as const}
+ shorthand
+ /> as estree.Property,
]}
- />
- ) as estree.ObjectExpression
- }
- />
- ) as estree.ReturnStatement,
+ /> as estree.ObjectExpression
+ }
+ /> as estree.ReturnStatement,
+ ]}
+ /> as estree.BlockStatement
+ }
+ /> as estree.FunctionExpression
+ }
+ method
+ kind={'init' as const}
+ /> as estree.Property,
+ as estree.Identifier}
+ value={
+ as estree.Identifier}
+ value={
+ as estree.ThisExpression}
+ property={ as estree.Identifier}
+ /> as estree.MemberExpression
+ }
+ /> as estree.SpreadElement,
+ ]}
+ /> as estree.ObjectExpression
+ }
+ /> as estree.ReturnStatement,
+ ]}
+ /> as estree.BlockStatement
+ }
+ /> as estree.FunctionExpression
+ }
+ method
+ kind={'init' as const}
+ /> as estree.Property,
]}
- />
- ) as estree.BlockStatement
- }
- />
- ) as estree.FunctionExpression
+ /> as estree.ObjectExpression
+ }
+ kind={'init' as const}
+ /> as estree.Property,
+ as estree.Identifier}
+ value={`} /> as estree.Literal}
+ kind={'init' as const}
+ /> as estree.Property,
+ ]}
+ /> as estree.ObjectExpression
}
- method
- kind={'init' as const}
- />
- ) as estree.Property,
- (
-
- ) as estree.Identifier
- }
- value={parameters}
- kind={'init' as const}
- />
- ) as estree.Property,
- ]}
- />
- ) as estree.ObjectExpression
+ /> as estree.ReturnStatement,
+ ]}
+ /> as estree.BlockStatement
+ }
+ /> as estree.FunctionExpression
}
- reference={
- (
- `}
- />
- ) as estree.Identifier
- }
- />
- ) as estree.Expression
- }
- />
- ) as estree.VariableDeclarator,
- ]}
- />
- ) as estree.VariableDeclaration
- }
- />
- ) as estree.ExportNamedDeclaration,
- ]),
- (
- ) as estree.Identifier}
- />
- ) as estree.ExportDefaultDeclaration,
+ method
+ kind={'init' as const}
+ /> as estree.Property,
+ as estree.Identifier}
+ value={parameters}
+ kind={'init' as const}
+ /> as estree.Property,
+ ]}
+ /> as estree.ObjectExpression
+ }
+ reference={`} /> as estree.Identifier}
+ /> as estree.Expression
+ }
+ /> as estree.VariableDeclarator,
+ ]}
+ /> as estree.VariableDeclaration
+ }
+ /> as estree.ExportNamedDeclaration,
+ ]),
+ ) as estree.Identifier}
+ /> as estree.ExportDefaultDeclaration,
]}
/>
) as estree.Program;