[update] migrate the project formatter from prettier and eslint to biome

This commit is contained in:
PrinOrange
2024-08-14 12:57:22 +08:00
parent 009be6e7d9
commit 81de437888
61 changed files with 480 additions and 3865 deletions

View File

@@ -39,7 +39,7 @@ export function useActiveHeading(headingList: string[], options?: IntersectionOb
headingList
.map((heading) => document?.querySelector(`[id='${removeFirstHash(heading)}']`))
//Remove null elments
.flatMap((f) => (!!f ? [f] : []))
.flatMap((f) => (f ? [f] : []))
.forEach((element) => observer.observe(element));
return () => observer.disconnect();