mirror of
https://github.com/complexcaresolutions/frontend.blogwoman.de.git
synced 2026-03-17 16:14:00 +00:00
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:
parent
44ee0cceb7
commit
12c8461108
5 changed files with 14 additions and 6 deletions
|
|
@ -5,13 +5,21 @@ import nextTs from "eslint-config-next/typescript";
|
||||||
const eslintConfig = defineConfig([
|
const eslintConfig = defineConfig([
|
||||||
...nextVitals,
|
...nextVitals,
|
||||||
...nextTs,
|
...nextTs,
|
||||||
// Override default ignores of eslint-config-next.
|
{
|
||||||
|
rules: {
|
||||||
|
"@typescript-eslint/no-unused-vars": ["warn", {
|
||||||
|
argsIgnorePattern: "^_",
|
||||||
|
varsIgnorePattern: "^_",
|
||||||
|
destructuredArrayIgnorePattern: "^_",
|
||||||
|
}],
|
||||||
|
},
|
||||||
|
},
|
||||||
globalIgnores([
|
globalIgnores([
|
||||||
// Default ignores of eslint-config-next:
|
|
||||||
".next/**",
|
".next/**",
|
||||||
"out/**",
|
"out/**",
|
||||||
"build/**",
|
"build/**",
|
||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
|
"server.js",
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ export default async function SerienPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function SeriesCard({ series }: { series: Series }) {
|
function SeriesCard({ series }: { series: Series }) {
|
||||||
const imageUrl = getImageUrl(series.coverImage) || getImageUrl(series.logo)
|
const _imageUrl = getImageUrl(series.coverImage) || getImageUrl(series.logo)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link href={`/serien/${series.slug}`} className="group block">
|
<Link href={`/serien/${series.slug}`} className="group block">
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export function FAQBlock({
|
||||||
subtitle,
|
subtitle,
|
||||||
displayMode,
|
displayMode,
|
||||||
selectedFaqs,
|
selectedFaqs,
|
||||||
filterCategory,
|
_filterCategory,
|
||||||
layout = 'accordion',
|
layout = 'accordion',
|
||||||
expandFirst = false,
|
expandFirst = false,
|
||||||
showSchema = true,
|
showSchema = true,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ export async function FavoritesBlock({
|
||||||
displayMode,
|
displayMode,
|
||||||
selectedFavorites,
|
selectedFavorites,
|
||||||
filterCategory,
|
filterCategory,
|
||||||
layout = 'grid',
|
_layout = 'grid',
|
||||||
columns = 3,
|
columns = 3,
|
||||||
limit = 12,
|
limit = 12,
|
||||||
showPrice = true,
|
showPrice = true,
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import type {
|
||||||
SiteSettings,
|
SiteSettings,
|
||||||
} from "./types"
|
} 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"
|
const TENANT_ID = process.env.NEXT_PUBLIC_TENANT_ID || "9"
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue