eslint.ignoreDuringBuilds stand auf true, der Build verschluckte also jede Lint-Meldung. Im gesamten Projekt gab es genau zwei echte Errors -- beide "let json" statt "const json" in SettingsSidebar.tsx. Behoben, Schalter aus, next lint endet mit Exit 0. Die 695 Warnungen (470 no-explicit-any, 209 ungenutzte Variablen, 11 unvollstaendige Hook-Abhaengigkeiten) blockieren den Build nicht. Die Hook-Warnungen sind davon die interessantesten, weil daraus echte Bugs entstehen -- stehen als eigener Punkt in TODO.md. Naechster Schritt ist typescript.ignoreBuildErrors; der volle tsc-Lauf dauert wegen WeeklyView.tsx ueber 15 Minuten und laeuft noch. v1.117.4 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
33 lines
851 B
JavaScript
33 lines
851 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const { version } = require('./package.json');
|
|
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
eslint: {
|
|
// Aus: Der Build soll ESLint-Fehler melden. Warnungen (aktuell ~695, überwiegend
|
|
// no-explicit-any) blockieren den Build nicht — nur Errors tun das.
|
|
ignoreDuringBuilds: false,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
optimizeFonts: false,
|
|
env: {
|
|
NEXT_PUBLIC_APP_VERSION: version,
|
|
},
|
|
experimental: {
|
|
serverComponentsExternalPackages: ['ical.js', 'tsdav'],
|
|
},
|
|
webpack: (config, { isServer }) => {
|
|
// Ignore .md files in node_modules (fixes apple-icloud README.md parse error)
|
|
config.module.rules.push({
|
|
test: /\.md$/,
|
|
include: /node_modules/,
|
|
type: 'asset/source',
|
|
});
|
|
return config;
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|