diff --git a/package.json b/package.json index be0a460f..df070585 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "start:services": "docker-compose up", "build": "yarn typecheck && vite build", "prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"", - "lint": "eslint src/ cypress/", + "lint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\" \"./cypress/**/*.{js,jsx,ts,tsx}\"", "fix": "yarn prettier && yarn lint --fix", "test": "yarn test:unit && yarn test:e2e", "test:e2e": "TZ=Etc/GMT-3 start-test 'yarn start:server --port 3030' 3030 'cypress run'", diff --git a/src/components/SearchForm/SearchForm.tsx b/src/components/SearchForm/SearchForm.tsx index 2be93ef9..3cc7639b 100644 --- a/src/components/SearchForm/SearchForm.tsx +++ b/src/components/SearchForm/SearchForm.tsx @@ -1,5 +1,4 @@ import { useState, useEffect, ChangeEvent, useRef } from 'react'; -import { useLocation } from 'react-router-dom'; import { Trans } from 'react-i18next'; import { diff --git a/src/domains/scrobbleSong/ScrobbleSong.tsx b/src/domains/scrobbleSong/ScrobbleSong.tsx index bd9e26af..2ae8a291 100644 --- a/src/domains/scrobbleSong/ScrobbleSong.tsx +++ b/src/domains/scrobbleSong/ScrobbleSong.tsx @@ -14,7 +14,6 @@ import { clearListOfScrobbles, scrobbleCounterEnabled } from 'store/actions/scro import EmptyScrobbleListFiller from 'components/EmptyScrobbleListFiller'; import ScrobbleList from 'components/ScrobbleList'; -import Spinner from 'components/Spinner'; import { SongForm } from './SongForm'; import { LastFmProfileHistory } from './partials/LastFmProfileHistory'; diff --git a/src/domains/scrobbleUser/partials/UserResultsHeading.tsx b/src/domains/scrobbleUser/partials/UserResultsHeading.tsx index 3ecf7f43..b8a74034 100644 --- a/src/domains/scrobbleUser/partials/UserResultsHeading.tsx +++ b/src/domains/scrobbleUser/partials/UserResultsHeading.tsx @@ -1,9 +1,5 @@ -import { useEffect, useState } from 'react'; -import { useSelector } from 'react-redux'; -import { useParams, useNavigate } from 'react-router-dom'; -import ReactGA from 'react-ga-neo'; -import { keepPreviousData, useQuery, QueryClient, useQueryClient } from '@tanstack/react-query'; -import { get } from 'lodash-es'; +import { useNavigate } from 'react-router-dom'; +import { useQueryClient } from '@tanstack/react-query'; import { Row, Button } from 'reactstrap'; import { Trans, useTranslation } from 'react-i18next'; diff --git a/src/utils/types/avatar.ts b/src/utils/types/avatar.ts index 45369041..8e61226e 100644 --- a/src/utils/types/avatar.ts +++ b/src/utils/types/avatar.ts @@ -1,7 +1,5 @@ export type AvatarSizes = 'xl' | 'lg' | 'md' | 'sm'; export type Avatar = - | { - [key in AvatarSizes]: string; - } + | Record | null;