fix: resolve lint errors (server.js ignore, unused vars)

- Add server.js to ESLint globalIgnores (CJS file for Passenger)
- Prefix unused destructured vars with underscore
- Comment out unused PAYLOAD_URL constant
- Configure underscore-prefix pattern for unused vars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
CCS Admin 2026-02-15 21:49:23 +00:00
parent 44ee0cceb7
commit 12c8461108
5 changed files with 14 additions and 6 deletions

View file

@ -5,13 +5,21 @@ import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
{
rules: {
"@typescript-eslint/no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
}],
},
},
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
"server.js",
]),
]);

View file

@ -56,7 +56,7 @@ export default async function SerienPage() {
}
function SeriesCard({ series }: { series: Series }) {
const imageUrl = getImageUrl(series.coverImage) || getImageUrl(series.logo)
const _imageUrl = getImageUrl(series.coverImage) || getImageUrl(series.logo)
return (
<Link href={`/serien/${series.slug}`} className="group block">

View file

@ -15,7 +15,7 @@ export function FAQBlock({
subtitle,
displayMode,
selectedFaqs,
filterCategory,
_filterCategory,
layout = 'accordion',
expandFirst = false,
showSchema = true,

View file

@ -12,7 +12,7 @@ export async function FavoritesBlock({
displayMode,
selectedFavorites,
filterCategory,
layout = 'grid',
_layout = 'grid',
columns = 3,
limit = 12,
showPrice = true,

View file

@ -21,7 +21,7 @@ import type {
SiteSettings,
} from "./types"
const PAYLOAD_URL = process.env.NEXT_PUBLIC_PAYLOAD_URL || "https://cms.c2sgmbh.de"
// const PAYLOAD_URL = process.env.NEXT_PUBLIC_PAYLOAD_URL || "https://cms.c2sgmbh.de"
const TENANT_ID = process.env.NEXT_PUBLIC_TENANT_ID || "9"
// Pages