lint: use svelte/reactivity classes
This commit is contained in:
11 files changed
+31
-52
No files matched your search
@@ -16,6 +16,7 @@
|
||||
import { Button, Modal } from 'mono-svelte'
|
||||
import { ChatBubbleOvalLeftEllipsis, Icon, Inbox } from 'svelte-hero-icons'
|
||||
import { expoOut } from 'svelte/easing'
|
||||
import { SvelteSet } from 'svelte/reactivity'
|
||||
import { fly } from 'svelte/transition'
|
||||
|
||||
interface ConversationPreview {
|
||||
@@ -34,7 +35,7 @@
|
||||
}
|
||||
|
||||
function filterDuplicates<T, K>(array: T[], predicate: (item: T) => K): T[] {
|
||||
const seen = new Set()
|
||||
const seen = new SvelteSet()
|
||||
return array.filter(element => {
|
||||
const value = predicate(element)
|
||||
if (seen.has(value)) {
|
||||
|
||||
Reference in new issue
Block a user