EsLint
This commit is contained in:
@@ -1,22 +1,41 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "esnext", // Wichtig: modernes Modul-System
|
||||
"moduleResolution": "node", // Damit Aliase zuverlässig aufgelöst werden
|
||||
"target": "es2020",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"jsx": "preserve",
|
||||
|
||||
// 🧠 Strict Mode – aktiviert alle strengen Prüfungen
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictBindCallApply": true,
|
||||
"alwaysStrict": true,
|
||||
|
||||
// 🧼 Weitere gute Optionen
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
||||
// 🔧 Build-Verhalten
|
||||
"noEmit": true,
|
||||
"incremental": true,
|
||||
"isolatedModules": true,
|
||||
"skipLibCheck": true,
|
||||
|
||||
// 📦 Module/Import
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"noEmit": true,
|
||||
"skipLibCheck": true,
|
||||
"types": ["cypress", "node"],
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"incremental": true,
|
||||
|
||||
// 👉 Wichtig: Basis & Pfade setzen
|
||||
// 🌐 IDE-Typen
|
||||
"types": ["cypress", "node"],
|
||||
|
||||
// 📚 Unterstützte Bibliotheken
|
||||
"lib": ["dom", "dom.iterable", "es2020"],
|
||||
|
||||
// ✨ Pfade/Aliase
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./*"],
|
||||
@@ -32,7 +51,7 @@
|
||||
".", // Projekt-Root
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"types/global.d.ts" // falls du globale Typen nutzt
|
||||
"types/global.d.ts"
|
||||
],
|
||||
|
||||
"exclude": ["node_modules", ".next", "out"]
|
||||
|
||||
Reference in New Issue
Block a user