Skip to content

Commit 1bcaf07

Browse files
committed
code style 🖌
1 parent 732650d commit 1bcaf07

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false
4+
}

src/RangeSlider.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
// save spring-tweened copies of the values for use
4545
// when changing values and animating the handle/range nicely
4646
let springPositions = spring(
47-
values.map((v) => parseFloat((((v - min) / (max - min)) * 100).toFixed(precision))),
47+
values.map((v) =>
48+
parseFloat((((v - min) / (max - min)) * 100).toFixed(precision))
49+
),
4850
springValues
4951
);
5052

0 commit comments

Comments
 (0)