️ 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)
"allowImportingTsExtensions": true, // Keep as is: allows .ts and .tsx imports without extensions
"isolatedModules": true, // Keep as is: ensures isolated module transpilation for compatibility with modern bundlers
"noEmit": true, // Keep as is: prevents emitting JavaScript output (for type-checking only)
/* Bundler mode */ /* Linting & Type-Checking */
"moduleResolution": "bundler", "strict": true, // Keep as is: enables all strict type-checking options
"allowImportingTsExtensions": true, "noUnusedLocals": true, // Keep as is: ensures no unused local variables
"isolatedModules": true, "noUnusedParameters": true, // Keep as is: ensures no unused parameters in functions
"moduleDetection": "force", "noFallthroughCasesInSwitch": true, // Keep as is: prevents fallthrough in switch statements
"noEmit": true, "alwaysStrict": true, // Enforces 'use strict' at the beginning of every file
"noImplicitReturns": true, // Ensures every function has a return statement
/* Linting */ "noImplicitThis": true, // Ensures `this` is always typed in functions
"strict": true, "strictNullChecks": true, // Enforces stricter null and undefined handling
"noUnusedLocals": true, "strictFunctionTypes": true, // Enforces stricter function type compatibility
"noUnusedParameters": true, "esModuleInterop": true, // Enables compatibility with CommonJS modules (if needed)
"noFallthroughCasesInSwitch": true "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
} }