Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairjcbrown committed Dec 28, 2024
1 parent ce2ff2c commit d9afe2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions site/src/app/showings/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function getVenuesNear(

const dateRanges = [
{
// eslint-disable-next-line @typescript-eslint/no-unused-vars
matcher: (value: string, data: CinemaData | null): boolean =>
value === "today",
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand All @@ -39,6 +40,7 @@ const dateRanges = [
),
},
{
// eslint-disable-next-line @typescript-eslint/no-unused-vars
matcher: (value: string, data: CinemaData | null): boolean =>
value === "tomorrow",
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand All @@ -51,6 +53,7 @@ const dateRanges = [
),
},
{
// eslint-disable-next-line @typescript-eslint/no-unused-vars
matcher: (value: string, data: CinemaData | null): boolean =>
!!value.match(/\d{4}-\d{2}-\d{2}/),
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand All @@ -66,6 +69,7 @@ const dateRanges = [

const locations = [
{
// eslint-disable-next-line @typescript-eslint/no-unused-vars
matcher: (value: string, data: CinemaData | null): boolean =>
value === "near-me",
generator: (value: string, data: CinemaData | null): Promise<VenueFilter> =>
Expand All @@ -80,6 +84,7 @@ const locations = [
}),
},
{
// eslint-disable-next-line @typescript-eslint/no-unused-vars
matcher: (value: string, data: CinemaData | null): boolean => {
const match = value.match(/^near-(.+)$/i);
if (!match || !data?.venues) return false;
Expand Down

0 comments on commit d9afe2b

Please sign in to comment.