chore: add no unused vars lint rule

This commit is contained in:
Christian Andolf
2025-02-14 10:24:52 +01:00
parent 1116bdafa8
commit 06d861fb6f
54 changed files with 47 additions and 143 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
"use client"
import { usePathname, useSearchParams } from "next/navigation"
import { useEffect, useState } from "react"
import { useEffect } from "react"
import type {
SiteSectionObject,
@@ -19,7 +19,7 @@ function createPageObject(trackingData: TrackingData) {
.filter((seg: string) => seg)
function getSiteSections(segments: string[]): SiteSectionObject {
/*
/*
Adobe expects the properties sitesection1 - sitessection6, hence the for-loop below
The segments ['explore-scandic', 'wifi'] should result in:
{
@@ -29,7 +29,7 @@ function createPageObject(trackingData: TrackingData) {
sitesection4: "explore-scandic|wifi||",
sitesection5: "explore-scandic|wifi|||",
sitesection6: "explore-scandic|wifi||||",
}
}
*/
const sitesections = {} as SiteSectionObject
for (let i = 0; i < 6; i++) {