Migrated to ESLint

This commit is contained in:
squidfunk
2021-02-07 17:43:13 +01:00
parent 4744d5f3f0
commit 208c9ac3fd
65 changed files with 1968 additions and 393 deletions

View File

@@ -46,9 +46,9 @@ import {
setAnchorState
} from "~/actions"
import {
Viewport,
getElement,
getElements,
Viewport,
watchElementSize
} from "~/browser"
@@ -109,7 +109,7 @@ interface MountOptions {
* @param anchors - Anchor elements
* @param options - Options
*
* @return Table of contents observable
* @returns Table of contents observable
*/
export function watchTableOfContents(
anchors: HTMLAnchorElement[], { viewport$, header$ }: WatchOptions
@@ -236,7 +236,7 @@ export function watchTableOfContents(
* @param el - Anchor list element
* @param options - Options
*
* @return Table of contents component observable
* @returns Table of contents component observable
*/
export function mountTableOfContents(
el: HTMLElement, options: MountOptions