style(#10336): use single quote
This commit is contained in:
parent
cc3fbefc83
commit
49f8bb4974
|
@ -96,16 +96,16 @@ function toStories(component: string): string {
|
||||||
<object-expression
|
<object-expression
|
||||||
properties={[
|
properties={[
|
||||||
<property
|
<property
|
||||||
key={<identifier name="layout" />}
|
key={<identifier name='layout' />}
|
||||||
value={<literal value={`${dir}/`.startsWith('src/pages/') ? 'fullscreen' : 'centered'} />}
|
value={<literal value={`${dir}/`.startsWith('src/pages/') ? 'fullscreen' : 'centered'} />}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
/>,
|
/>,
|
||||||
...hasMsw
|
...hasMsw
|
||||||
? [
|
? [
|
||||||
<property
|
<property
|
||||||
key={<identifier name="msw" />}
|
key={<identifier name='msw' />}
|
||||||
value={<identifier name="msw" />}
|
value={<identifier name='msw' />}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
shorthand
|
shorthand
|
||||||
/>,
|
/>,
|
||||||
]
|
]
|
||||||
|
@ -117,18 +117,18 @@ function toStories(component: string): string {
|
||||||
<program
|
<program
|
||||||
body={[
|
body={[
|
||||||
<import-declaration
|
<import-declaration
|
||||||
source={<literal value="@storybook/vue3" />}
|
source={<literal value='@storybook/vue3' />}
|
||||||
specifiers={[
|
specifiers={[
|
||||||
<import-specifier
|
<import-specifier
|
||||||
local={<identifier name="Meta" />}
|
local={<identifier name='Meta' />}
|
||||||
imported={<identifier name="Meta" />}
|
imported={<identifier name='Meta' />}
|
||||||
/>,
|
/>,
|
||||||
...hasImplStories
|
...hasImplStories
|
||||||
? []
|
? []
|
||||||
: [
|
: [
|
||||||
<import-specifier
|
<import-specifier
|
||||||
local={<identifier name="StoryObj" />}
|
local={<identifier name='StoryObj' />}
|
||||||
imported={<identifier name="StoryObj" />}
|
imported={<identifier name='StoryObj' />}
|
||||||
/>,
|
/>,
|
||||||
],
|
],
|
||||||
]}
|
]}
|
||||||
|
@ -139,7 +139,7 @@ function toStories(component: string): string {
|
||||||
source={<literal value={`./${basename(msw)}`} />}
|
source={<literal value={`./${basename(msw)}`} />}
|
||||||
specifiers={[
|
specifiers={[
|
||||||
<import-namespace-specifier
|
<import-namespace-specifier
|
||||||
local={<identifier name="msw" />}
|
local={<identifier name='msw' />}
|
||||||
/>,
|
/>,
|
||||||
]}
|
]}
|
||||||
/>,
|
/>,
|
||||||
|
@ -158,24 +158,24 @@ function toStories(component: string): string {
|
||||||
/>,
|
/>,
|
||||||
],
|
],
|
||||||
<variable-declaration
|
<variable-declaration
|
||||||
kind={"const" as const}
|
kind={'const' as const}
|
||||||
declarations={[
|
declarations={[
|
||||||
<variable-declarator
|
<variable-declarator
|
||||||
id={<identifier name="meta" />}
|
id={<identifier name='meta' />}
|
||||||
init={
|
init={
|
||||||
<satisfies-expression
|
<satisfies-expression
|
||||||
expression={
|
expression={
|
||||||
<object-expression
|
<object-expression
|
||||||
properties={[
|
properties={[
|
||||||
<property
|
<property
|
||||||
key={<identifier name="title" />}
|
key={<identifier name='title' />}
|
||||||
value={literal}
|
value={literal}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
/>,
|
/>,
|
||||||
<property
|
<property
|
||||||
key={<identifier name="component" />}
|
key={<identifier name='component' />}
|
||||||
value={identifier}
|
value={identifier}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
/>,
|
/>,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
@ -193,28 +193,28 @@ function toStories(component: string): string {
|
||||||
<export-named-declaration
|
<export-named-declaration
|
||||||
declaration={
|
declaration={
|
||||||
<variable-declaration
|
<variable-declaration
|
||||||
kind={"const" as const}
|
kind={'const' as const}
|
||||||
declarations={[
|
declarations={[
|
||||||
<variable-declarator
|
<variable-declarator
|
||||||
id={<identifier name="Default" />}
|
id={<identifier name='Default' />}
|
||||||
init={
|
init={
|
||||||
<satisfies-expression
|
<satisfies-expression
|
||||||
expression={
|
expression={
|
||||||
<object-expression
|
<object-expression
|
||||||
properties={[
|
properties={[
|
||||||
<property
|
<property
|
||||||
key={<identifier name="render" />}
|
key={<identifier name='render' />}
|
||||||
value={
|
value={
|
||||||
<function-expression
|
<function-expression
|
||||||
id={<identifier name="render" />}
|
id={<identifier name='render' />}
|
||||||
params={[
|
params={[
|
||||||
<identifier name="args" />,
|
<identifier name='args' />,
|
||||||
<object-pattern
|
<object-pattern
|
||||||
properties={[
|
properties={[
|
||||||
<property
|
<property
|
||||||
key={<identifier name="argTypes" />}
|
key={<identifier name='argTypes' />}
|
||||||
value={<identifier name="argTypes" />}
|
value={<identifier name='argTypes' />}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
shorthand
|
shorthand
|
||||||
/>,
|
/>,
|
||||||
]}
|
]}
|
||||||
|
@ -228,42 +228,42 @@ function toStories(component: string): string {
|
||||||
<object-expression
|
<object-expression
|
||||||
properties={[
|
properties={[
|
||||||
<property
|
<property
|
||||||
key={<identifier name="components" />}
|
key={<identifier name='components' />}
|
||||||
value={
|
value={
|
||||||
<object-expression
|
<object-expression
|
||||||
properties={[
|
properties={[
|
||||||
<property
|
<property
|
||||||
key={identifier}
|
key={identifier}
|
||||||
value={identifier}
|
value={identifier}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
shorthand
|
shorthand
|
||||||
/>,
|
/>,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
/>,
|
/>,
|
||||||
<property
|
<property
|
||||||
key={<identifier name="props" />}
|
key={<identifier name='props' />}
|
||||||
value={
|
value={
|
||||||
<call-expression
|
<call-expression
|
||||||
callee={
|
callee={
|
||||||
<member-expression
|
<member-expression
|
||||||
object={<identifier name="Object" />}
|
object={<identifier name='Object' />}
|
||||||
property={<identifier name="keys" />}
|
property={<identifier name='keys' />}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
arguments={[
|
arguments={[
|
||||||
<identifier name="argTypes" />,
|
<identifier name='argTypes' />,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
/>,
|
/>,
|
||||||
<property
|
<property
|
||||||
key={<identifier name="template" />}
|
key={<identifier name='template' />}
|
||||||
value={<literal value={`<${identifier.name} v-bind="$props" />`} />}
|
value={<literal value={`<${identifier.name} v-bind='$props' />`} />}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
/>,
|
/>,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
@ -275,12 +275,12 @@ function toStories(component: string): string {
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
method
|
method
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
/>,
|
/>,
|
||||||
<property
|
<property
|
||||||
key={<identifier name="parameters" />}
|
key={<identifier name='parameters' />}
|
||||||
value={parameters}
|
value={parameters}
|
||||||
kind={"init" as const}
|
kind={'init' as const}
|
||||||
/>,
|
/>,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
@ -295,7 +295,7 @@ function toStories(component: string): string {
|
||||||
/>,
|
/>,
|
||||||
],
|
],
|
||||||
<export-default-declaration
|
<export-default-declaration
|
||||||
declaration={<identifier name="meta" />}
|
declaration={<identifier name='meta' />}
|
||||||
/>,
|
/>,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue