Skip to content

Commit

Permalink
style(#10336): use single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed Mar 21, 2023
1 parent cc3fbef commit 49f8bb4
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions packages/frontend/.storybook/generate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ function toStories(component: string): string {
<object-expression
properties={[
<property
key={<identifier name="layout" />}
key={<identifier name='layout' />}
value={<literal value={`${dir}/`.startsWith('src/pages/') ? 'fullscreen' : 'centered'} />}
kind={"init" as const}
kind={'init' as const}
/>,
...hasMsw
? [
<property
key={<identifier name="msw" />}
value={<identifier name="msw" />}
kind={"init" as const}
key={<identifier name='msw' />}
value={<identifier name='msw' />}
kind={'init' as const}
shorthand
/>,
]
Expand All @@ -117,18 +117,18 @@ function toStories(component: string): string {
<program
body={[
<import-declaration
source={<literal value="@storybook/vue3" />}
source={<literal value='@storybook/vue3' />}
specifiers={[
<import-specifier
local={<identifier name="Meta" />}
imported={<identifier name="Meta" />}
local={<identifier name='Meta' />}
imported={<identifier name='Meta' />}
/>,
...hasImplStories
? []
: [
<import-specifier
local={<identifier name="StoryObj" />}
imported={<identifier name="StoryObj" />}
local={<identifier name='StoryObj' />}
imported={<identifier name='StoryObj' />}
/>,
],
]}
Expand All @@ -139,7 +139,7 @@ function toStories(component: string): string {
source={<literal value={`./${basename(msw)}`} />}
specifiers={[
<import-namespace-specifier
local={<identifier name="msw" />}
local={<identifier name='msw' />}
/>,
]}
/>,
Expand All @@ -158,24 +158,24 @@ function toStories(component: string): string {
/>,
],
<variable-declaration
kind={"const" as const}
kind={'const' as const}
declarations={[
<variable-declarator
id={<identifier name="meta" />}
id={<identifier name='meta' />}
init={
<satisfies-expression
expression={
<object-expression
properties={[
<property
key={<identifier name="title" />}
key={<identifier name='title' />}
value={literal}
kind={"init" as const}
kind={'init' as const}
/>,
<property
key={<identifier name="component" />}
key={<identifier name='component' />}
value={identifier}
kind={"init" as const}
kind={'init' as const}
/>,
]}
/>
Expand All @@ -193,28 +193,28 @@ function toStories(component: string): string {
<export-named-declaration
declaration={
<variable-declaration
kind={"const" as const}
kind={'const' as const}
declarations={[
<variable-declarator
id={<identifier name="Default" />}
id={<identifier name='Default' />}
init={
<satisfies-expression
expression={
<object-expression
properties={[
<property
key={<identifier name="render" />}
key={<identifier name='render' />}
value={
<function-expression
id={<identifier name="render" />}
id={<identifier name='render' />}
params={[
<identifier name="args" />,
<identifier name='args' />,
<object-pattern
properties={[
<property
key={<identifier name="argTypes" />}
value={<identifier name="argTypes" />}
kind={"init" as const}
key={<identifier name='argTypes' />}
value={<identifier name='argTypes' />}
kind={'init' as const}
shorthand
/>,
]}
Expand All @@ -228,42 +228,42 @@ function toStories(component: string): string {
<object-expression
properties={[
<property
key={<identifier name="components" />}
key={<identifier name='components' />}
value={
<object-expression
properties={[
<property
key={identifier}
value={identifier}
kind={"init" as const}
kind={'init' as const}
shorthand
/>,
]}
/>
}
kind={"init" as const}
kind={'init' as const}
/>,
<property
key={<identifier name="props" />}
key={<identifier name='props' />}
value={
<call-expression
callee={
<member-expression
object={<identifier name="Object" />}
property={<identifier name="keys" />}
object={<identifier name='Object' />}
property={<identifier name='keys' />}
/>
}
arguments={[
<identifier name="argTypes" />,
<identifier name='argTypes' />,
]}
/>
}
kind={"init" as const}
kind={'init' as const}
/>,
<property
key={<identifier name="template" />}
value={<literal value={`<${identifier.name} v-bind="$props" />`} />}
kind={"init" as const}
key={<identifier name='template' />}
value={<literal value={`<${identifier.name} v-bind='$props' />`} />}
kind={'init' as const}
/>,
]}
/>
Expand All @@ -275,12 +275,12 @@ function toStories(component: string): string {
/>
}
method
kind={"init" as const}
kind={'init' as const}
/>,
<property
key={<identifier name="parameters" />}
key={<identifier name='parameters' />}
value={parameters}
kind={"init" as const}
kind={'init' as const}
/>,
]}
/>
Expand All @@ -295,7 +295,7 @@ function toStories(component: string): string {
/>,
],
<export-default-declaration
declaration={<identifier name="meta" />}
declaration={<identifier name='meta' />}
/>,
]}
/>
Expand Down

0 comments on commit 49f8bb4

Please sign in to comment.