chore(prettier): use svelteStrictMode

This commit is contained in:
Eric Liu 2020-09-04 16:35:49 -07:00
commit 42b8159b1c
182 changed files with 2020 additions and 1912 deletions

View file

@ -14,11 +14,11 @@
{#if href}
<a
{href}
href="{href}"
role="button"
class:bx--skeleton={true}
class:bx--btn={true}
class:bx--btn--sm={small}
class:bx--skeleton="{true}"
class:bx--btn="{true}"
class:bx--btn--sm="{small}"
{...$$restProps}
on:click
on:mouseover
@ -28,12 +28,12 @@
</a>
{:else}
<div
class:bx--skeleton={true}
class:bx--btn={true}
class:bx--btn--sm={small}
class:bx--skeleton="{true}"
class:bx--btn="{true}"
class:bx--btn--sm="{small}"
{...$$restProps}
on:click
on:mouseover
on:mouseenter
on:mouseleave />
on:mouseleave></div>
{/if}

View file

@ -122,56 +122,56 @@
{#if skeleton}
<ButtonSkeleton
{href}
small={size === 'small'}
href="{href}"
small="{size === 'small'}"
{...$$restProps}
style={hasIconOnly && 'width: 3rem;'}
style="{hasIconOnly && 'width: 3rem;'}"
on:click
on:mouseover
on:mouseenter
on:mouseleave />
{:else}
{#if as}
<slot props={buttonProps} />
<slot props="{buttonProps}" />
{:else if href && !disabled}
<!-- svelte-ignore a11y-missing-attribute -->
<a
bind:this={ref}
bind:this="{ref}"
{...buttonProps}
on:click
on:mouseover
on:mouseenter
on:mouseleave>
{#if hasIconOnly}
<span class:bx--assistive-text={true}>{iconDescription}</span>
<span class:bx--assistive-text="{true}">{iconDescription}</span>
{/if}
<slot />
{#if icon}
<svelte:component
this={icon}
this="{icon}"
aria-hidden="true"
class="bx--btn__icon"
aria-label={iconDescription} />
aria-label="{iconDescription}" />
{/if}
</a>
{:else}
<button
bind:this={ref}
bind:this="{ref}"
{...buttonProps}
on:click
on:mouseover
on:mouseenter
on:mouseleave>
{#if hasIconOnly}
<span class:bx--assistive-text={true}>{iconDescription}</span>
<span class:bx--assistive-text="{true}">{iconDescription}</span>
{/if}
<slot />
{#if icon}
<svelte:component
this={icon}
this="{icon}"
aria-hidden="true"
class="bx--btn__icon"
aria-label={iconDescription} />
aria-label="{iconDescription}" />
{/if}
</button>
{/if}

View file

@ -1,3 +1,3 @@
<div class:bx--btn-set={true} {...$$restProps}>
<div class:bx--btn-set="{true}" {...$$restProps}>
<slot />
</div>