chore(lint): apply recommended lint rules

This commit is contained in:
Eric Liu 2019-12-29 15:37:56 -08:00
commit 866cc962cd
23 changed files with 35 additions and 54 deletions

View file

@ -4,17 +4,26 @@
import Layout from '../../internal/ui/Layout.svelte';
import ContentSwitcher from './ContentSwitcher.svelte';
import Switch from './Switch.svelte';
let selectedIndex = 0;
</script>
<Layout>
{#if story === 'selected'}
<ContentSwitcher>
<ContentSwitcher
on:change={({ detail }) => {
console.log('on:change', detail);
}}>
<Switch {...$$props} text="First section" />
<Switch {...$$props} text="Second section" selected />
<Switch {...$$props} text="Third section" />
</ContentSwitcher>
{:else}
<ContentSwitcher>
<ContentSwitcher
bind:selectedIndex
on:change={({ detail }) => {
console.log('on:change', detail);
}}>
<Switch {...$$props} text="First section" />
<Switch {...$$props} text="Second section" />
<Switch {...$$props} text="Third section" />