Legt das Fundament der Lern-Bar an: - Next.js 15 (App Router), React 19, TypeScript, ESLint, Vitest - SQLite ueber Drizzle hinter einer Repository-Schicht - Eigener Migrationslauf mit Pruefsummen, beim Start angewendet - Argon2id, serverseitige Sitzungen, HttpOnly-Cookie, SameSite=Lax - Rollen Ausbilder und Azubi, Rechteregeln als reine Funktionen - Verwaltung: Azubikonto und Ausbildung anlegen, Passwort, Sperren - Gestaltung Petrol/Bernstein, helle und dunkle Darstellung - Dockerfile, docker-compose, Lebenszeichen, update.sh mit Rueckfall - Sicherung und Wiederherstellung als Shell-Skripte - 29 Tests fuer Rechte, Zeitrechnung und Migrationslauf Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
18 lines
616 B
JavaScript
18 lines
616 B
JavaScript
import { dirname } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { FlatCompat } from '@eslint/eslintrc';
|
|
|
|
const compat = new FlatCompat({ baseDirectory: dirname(fileURLToPath(import.meta.url)) });
|
|
|
|
const konfiguration = [
|
|
{ ignores: ['.next/**', 'node_modules/**', 'daten/**', 'sicherungen/**', 'next-env.d.ts', 'playwright-report/**', 'test-results/**'] },
|
|
...compat.extends('next/core-web-vitals', 'next/typescript'),
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
},
|
|
},
|
|
];
|
|
|
|
export default konfiguration;
|