UNPKG

@heavy-dev/config

Version:

Shared configuration files for Heavy Dev projects

68 lines (51 loc) 1.61 kB
{ "compilerOptions": { // Target modern JavaScript features "target": "ES2020", // Include DOM and ESNext features "lib": ["DOM", "DOM.Iterable", "ESNext"], // Allow JavaScript files to be compiled "allowJs": true, // Skip type checking of declaration files "skipLibCheck": true, // Enable strict mode for better type safety "strict": true, // Ensure consistent casing in imports "forceConsistentCasingInFileNames": true, // Do not emit compiled files (Next.js handles this) "noEmit": true, // Enable interoperability between CommonJS and ES modules "esModuleInterop": true, // Use ESNext module system "module": "ESNext", // Use Node.js-style module resolution "moduleResolution": "Node", // Allow importing JSON files "resolveJsonModule": true, // Treat each file as a separate module "isolatedModules": true, // Preserve JSX for Next.js to handle "jsx": "preserve", // Enable incremental compilation for faster builds "incremental": true, // Add Next.js-specific TypeScript plugin "plugins": [ { "name": "next" } ], // Define path aliases (optional, adjust as needed) "paths": { "@/*": ["./*"] } }, // Include files for type checking "include": [ "next-env.d.ts", // Next.js environment types "**/*.ts", // TypeScript files "**/*.tsx", // TypeScript React files ".next/types/**/*.ts" // Next.js generated types ], // Exclude unnecessary files and directories "exclude": ["node_modules"] }