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

@ -24,34 +24,36 @@
</script>
<li
class:bx--accordion__item={true}
class:bx--accordion__item--active={open}
class:bx--accordion__item="{true}"
class:bx--accordion__item--active="{open}"
class="bx--accordion__item--${animation}"
{...$$restProps}
on:animationend
on:animationend={() => {
on:animationend="{() => {
animation = undefined;
}}>
}}">
<button
type="button"
class:bx--accordion__heading={true}
title={iconDescription}
aria-expanded={open}
class:bx--accordion__heading="{true}"
title="{iconDescription}"
aria-expanded="{open}"
on:click
on:click={() => {
on:click="{() => {
open = !open;
animation = open ? 'expanding' : 'collapsing';
}}
}}"
on:mouseover
on:mouseenter
on:mouseleave
on:keydown
on:keydown={({ key }) => {
on:keydown="{({ key }) => {
if (open && key === 'Escape') {
open = false;
}
}}>
<ChevronRight16 class="bx--accordion__arrow" aria-label={iconDescription} />
}}">
<ChevronRight16
class="bx--accordion__arrow"
aria-label="{iconDescription}" />
<div class="bx--accordion__title">
<slot name="title">{title}</slot>
</div>