diff --git a/.eslintrc.json b/.eslintrc.json index 26f3f4aa..0fd6bf39 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -14,6 +14,8 @@ "rules": { "react/react-in-jsx-scope": "off", "react/prop-types": "off", + "@typescript-eslint/no-explicit-any": "warn", + "@typescript-eslint/no-unused-vars": "warn", "custom-rules/no-text-size-class": "warn", "prettier/prettier": "error" }, diff --git a/src/app/find-properties/[[...opa_id]]/page.tsx b/src/app/find-properties/[[...opa_id]]/page.tsx index 87ce24ca..587bde18 100644 --- a/src/app/find-properties/[[...opa_id]]/page.tsx +++ b/src/app/find-properties/[[...opa_id]]/page.tsx @@ -8,7 +8,6 @@ import { SidePanel, SidePanelControlBar, } from '@/components'; -import { FilterProvider } from '@/context/FilterContext'; import { NextUIProvider, Spinner } from '@nextui-org/react'; import { X, GlobeHemisphereWest, ListBullets } from '@phosphor-icons/react'; import { MapGeoJSONFeature } from 'maplibre-gl'; diff --git a/src/components/ContentCard.tsx b/src/components/ContentCard.tsx index f7ff953a..00801540 100644 --- a/src/components/ContentCard.tsx +++ b/src/components/ContentCard.tsx @@ -1,4 +1,4 @@ -import { FC, ReactNode } from 'react'; +import { FC } from 'react'; import Image, { StaticImageData } from 'next/image'; import { ThemeButtonLink } from './ThemeButton'; import { ArrowUpRight, CaretRight } from '@phosphor-icons/react'; @@ -29,16 +29,10 @@ type ContentCardProps = { }; const ContentCard: FC = ({ - // image, image, alt, title, body, - description, - linkurl, - linktext, - labelUpkeep, - upkeepLevel, links, details, hasArrow, diff --git a/src/components/Header.tsx b/src/components/Header.tsx index b556bd83..1b42dac7 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,6 +1,5 @@ import { Navbar, NavbarBrand, NavbarContent } from '@nextui-org/react'; import { PiBinoculars, PiKey, PiTree, PiInfo } from 'react-icons/pi'; -import { ThemeButton, ThemeButtonLink } from './ThemeButton'; import Image from 'next/image'; import Link from 'next/link'; import IconLink from './IconLink'; diff --git a/src/components/Hotjar.tsx b/src/components/Hotjar.tsx index 0bc0df44..d28856fe 100644 --- a/src/components/Hotjar.tsx +++ b/src/components/Hotjar.tsx @@ -1,6 +1,6 @@ 'use client'; -import React, { useEffect } from 'react'; +import { useEffect } from 'react'; const Hotjar = () => { useEffect(() => { diff --git a/src/components/MapLegendControl/MapLegendControl.tsx b/src/components/MapLegendControl/MapLegendControl.tsx index b0d9f603..253621a0 100644 --- a/src/components/MapLegendControl/MapLegendControl.tsx +++ b/src/components/MapLegendControl/MapLegendControl.tsx @@ -1,5 +1,5 @@ import { ControlPosition, FillLayerSpecification } from 'maplibre-gl'; -import React, { Dispatch, SetStateAction } from 'react'; +import { Dispatch, SetStateAction } from 'react'; import { useControl } from 'react-map-gl'; import { MapLegendControlClass } from './MapLegend'; diff --git a/src/components/PropertyCard.tsx b/src/components/PropertyCard.tsx index a09db0ed..616cf075 100644 --- a/src/components/PropertyCard.tsx +++ b/src/components/PropertyCard.tsx @@ -21,7 +21,7 @@ function getPriorityClass(priorityLevel: string) { } const PropertyCard = ({ feature, setSelectedProperty }: PropertyCardProps) => { - const { address, guncrime_density, tree_canopy_gap, priority_level, opa_id } = + const { address, guncrime_density, priority_level, opa_id } = feature.properties; const image = `https://storage.googleapis.com/cleanandgreenphl/${opa_id}.jpg`; diff --git a/src/components/PropertyDetailSection.tsx b/src/components/PropertyDetailSection.tsx index bd89ffec..5d1563bd 100644 --- a/src/components/PropertyDetailSection.tsx +++ b/src/components/PropertyDetailSection.tsx @@ -1,14 +1,6 @@ 'use client'; -import { - FC, - useState, - useMemo, - useRef, - useEffect, - SetStateAction, - Dispatch, -} from 'react'; +import { FC, useState, useMemo, useRef, SetStateAction, Dispatch } from 'react'; import { ThemeButton } from './ThemeButton'; import { PiCaretRight, PiCaretLeft } from 'react-icons/pi'; import { @@ -85,7 +77,6 @@ const PropertyDetailSection: FC = ({ key, value, isActive, - isFirst, onNext, onPrevious, setPage,