Skip to content

Commit

Permalink
fix: song route error, eslint config issue [closes #62]
Browse files Browse the repository at this point in the history
Signed-off-by: rajput-hemant <[email protected]>
  • Loading branch information
rajput-hemant committed Dec 27, 2024
1 parent 314821b commit 7182fe8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 12 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.useFlatConfig": false
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"prettier --write \"**/*.{ts,tsx,mdx}\" --cache"
],
"*.{ts,tsx,mdx}": [
"eslint --fix ."
"eslint --fix --no-config-lookup"
]
},
"commitlint": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(root)/episode/[name]/[token]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/app/(root)/mix/[name]/[token]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/app/(root)/show/[name]/[season]/[token]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/app/(root)/song/[name]/[token]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type SongDetailsPageProps = {
export async function generateMetadata({
params,
}: SongDetailsPageProps): Promise<Metadata> {
const { token } = await params;
const { name, token } = await params;

const songObj = await getSongDetails(token);
const song = songObj.songs[0];
Expand Down

1 comment on commit 7182fe8

@vercel
Copy link

@vercel vercel bot commented on 7182fe8 Dec 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.