️ perf: added dom array

This commit is contained in:
RiO
2024-12-29 05:45:26 +05:30
parent 321d0bfa74
commit e6356ebd36

View File

@@ -1,22 +1,29 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2022", "target": "ES2022", // Keep as is: suitable target for modern JS features
"lib": ["ES2023"], "lib": ["ES2023", "DOM"], // Include DOM types for web development
"module": "ESNext", "module": "ESNext", // Keep as is: supports modern module system
"skipLibCheck": true, "skipLibCheck": true, // Keep as is: improves build speed by skipping type-checking of declaration files
"moduleResolution": "bundler", // Keep as is: ensures compatibility with bundlers (Vite/Webpack)
/* Bundler mode */ "allowImportingTsExtensions": true, // Keep as is: allows .ts and .tsx imports without extensions
"moduleResolution": "bundler", "isolatedModules": true, // Keep as is: ensures isolated module transpilation for compatibility with modern bundlers
"allowImportingTsExtensions": true, "noEmit": true, // Keep as is: prevents emitting JavaScript output (for type-checking only)
"isolatedModules": true,
"moduleDetection": "force", /* Linting & Type-Checking */
"noEmit": true, "strict": true, // Keep as is: enables all strict type-checking options
"noUnusedLocals": true, // Keep as is: ensures no unused local variables
/* Linting */ "noUnusedParameters": true, // Keep as is: ensures no unused parameters in functions
"strict": true, "noFallthroughCasesInSwitch": true, // Keep as is: prevents fallthrough in switch statements
"noUnusedLocals": true, "alwaysStrict": true, // Enforces 'use strict' at the beginning of every file
"noUnusedParameters": true, "noImplicitReturns": true, // Ensures every function has a return statement
"noFallthroughCasesInSwitch": true "noImplicitThis": true, // Ensures `this` is always typed in functions
"strictNullChecks": true, // Enforces stricter null and undefined handling
"strictFunctionTypes": true, // Enforces stricter function type compatibility
"esModuleInterop": true, // Enables compatibility with CommonJS modules (if needed)
"skipDefaultLibCheck": true, // Skips checking of default libraries for faster compilation
"resolveJsonModule": true, // Allows importing JSON modules as TypeScript objects
"useDefineForClassFields": true // Enforces stricter behavior for class fields (ESNext)
}, },
"include": ["vite.config.ts"] "include": ["vite.config.ts", "src/**/*"], // Include additional source files for type-checking (adjust based on your project structure)
"exclude": ["node_modules", "dist"] // Exclude directories that should not be compiled
} }