1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 19:21:18 -04:00

drop some unused deps

This commit is contained in:
2021-09-05 09:51:41 -04:00
parent 3a3849e8ec
commit 7d7bf4b474
7 changed files with 56 additions and 236 deletions

View File

@@ -111,7 +111,7 @@ const getSiteStats = async (client: Client): Promise<OverallStats> => {
pages.map((p: PageStats) => {
// match URLs from RSS feed with db to populate some metadata
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
const match = feed.rss.channel.item.find(
(x: { link: string }) => x.link === baseUrl + p.slug + "/"
);

View File

@@ -129,7 +129,6 @@ const getNowPlaying = async (): Promise<Track> => {
};
const getTopTracks = async (): Promise<Track[]> => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { access_token } = await getAccessToken();
const response = await fetch(TOP_TRACKS_ENDPOINT, {
@@ -141,10 +140,8 @@ const getTopTracks = async (): Promise<Track[]> => {
},
});
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { items } = (await response.json()) as SpotifyTopSchema;
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
const tracks: Track[] = items.map((track: Readonly<SpotifyTrackSchema>) => ({
artist: track.artists.map((_artist) => _artist.name).join(", "),
title: track.name,