mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
chore(lint): apply recommended lint rules
This commit is contained in:
parent
709bd2825b
commit
866cc962cd
23 changed files with 35 additions and 54 deletions
|
@ -39,12 +39,9 @@
|
|||
});
|
||||
|
||||
$: if (switches[currentIndex]) {
|
||||
dispatch('change', currentIndex);
|
||||
selectedIndex = currentIndex;
|
||||
currentId.set(switches[currentIndex].id);
|
||||
switches = switches.map((_, i) => ({ ..._, selected: i === currentIndex }));
|
||||
|
||||
const { id, ...rest } = switches[currentIndex];
|
||||
dispatch('change', { ...rest, index: currentIndex });
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue