From 7182fe8621c8f8774cded3316a2c2d6b05833998 Mon Sep 17 00:00:00 2001 From: rajput-hemant Date: Fri, 27 Dec 2024 18:51:39 +0530 Subject: [PATCH] fix: song route error, eslint config issue [closes #62] Signed-off-by: rajput-hemant --- .eslintignore | 6 ------ .vscode/settings.json | 3 ++- package.json | 2 +- src/app/(root)/episode/[name]/[token]/page.tsx | 2 +- src/app/(root)/mix/[name]/[token]/page.tsx | 2 +- src/app/(root)/show/[name]/[season]/[token]/page.tsx | 2 +- src/app/(root)/song/[name]/[token]/page.tsx | 2 +- 7 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index a488a9a..0000000 --- a/.eslintignore +++ /dev/null @@ -1,6 +0,0 @@ -dist/* -.next/* -.cache -public -node_modules -*.esm.js \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 25fa621..ad62b14 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "eslint.useFlatConfig": false } diff --git a/package.json b/package.json index 5b0ac89..ade364f 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "prettier --write \"**/*.{ts,tsx,mdx}\" --cache" ], "*.{ts,tsx,mdx}": [ - "eslint --fix ." + "eslint --fix --no-config-lookup" ] }, "commitlint": { diff --git a/src/app/(root)/episode/[name]/[token]/page.tsx b/src/app/(root)/episode/[name]/[token]/page.tsx index e0b1d7a..4df996d 100644 --- a/src/app/(root)/episode/[name]/[token]/page.tsx +++ b/src/app/(root)/episode/[name]/[token]/page.tsx @@ -33,7 +33,7 @@ export async function generateMetadata({ }; } export default async function EpisodeDetailsPage(props: EpisodeDetailsProps) { - const { name, token } = await props.params; + const { token } = await props.params; const episodeObj = await getEpisodeDetails(token); diff --git a/src/app/(root)/mix/[name]/[token]/page.tsx b/src/app/(root)/mix/[name]/[token]/page.tsx index cf09eb4..ac6e552 100644 --- a/src/app/(root)/mix/[name]/[token]/page.tsx +++ b/src/app/(root)/mix/[name]/[token]/page.tsx @@ -33,7 +33,7 @@ export async function generateMetadata({ }; } export default async function MixDetailsPage(props: MixDetailsPageProps) { - const { name, token } = await props.params; + const { token } = await props.params; const mix = await getMixDetails(token); diff --git a/src/app/(root)/show/[name]/[season]/[token]/page.tsx b/src/app/(root)/show/[name]/[season]/[token]/page.tsx index e7fb055..762cd38 100644 --- a/src/app/(root)/show/[name]/[season]/[token]/page.tsx +++ b/src/app/(root)/show/[name]/[season]/[token]/page.tsx @@ -48,7 +48,7 @@ export async function generateMetadata({ export default async function ShowDetailsPage(props: ShowDetailsPageProps) { const { sort } = await props.searchParams; - const { name, season, token } = await props.params; + const { season, token } = await props.params; const user = await getUser(); diff --git a/src/app/(root)/song/[name]/[token]/page.tsx b/src/app/(root)/song/[name]/[token]/page.tsx index aefd470..83f438f 100644 --- a/src/app/(root)/song/[name]/[token]/page.tsx +++ b/src/app/(root)/song/[name]/[token]/page.tsx @@ -25,7 +25,7 @@ type SongDetailsPageProps = { export async function generateMetadata({ params, }: SongDetailsPageProps): Promise { - const { token } = await params; + const { name, token } = await params; const songObj = await getSongDetails(token); const song = songObj.songs[0];