|
1 | 1 | {
|
2 | 2 | "compilerOptions": {
|
3 |
| - // "plugins": [{ |
4 |
| - // "name": "typescript-plugin-css-modules", |
5 |
| - // "options": { |
6 |
| - // //"classnameTransform": "camelCase", |
7 |
| - // //"goToDefinition": true, |
8 |
| - // }, |
9 |
| - // }], |
| 3 | + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", |
10 | 4 |
|
11 |
| - "emitDeclarationOnly": true, |
12 |
| - "composite": true, |
13 |
| - "skipLibCheck": true, |
14 |
| - "target": "es2022", |
15 |
| - "module": "ESNext", |
16 |
| - "moduleResolution": "bundler", |
17 |
| - "allowImportingTsExtensions": true, |
| 5 | + // Emission |
| 6 | + "noEmit": true, // Do not emit by default (only type check) |
| 7 | + //"emitDeclarationOnly": false, |
| 8 | + "target": "ES2024", // JavaScript language version to emit |
| 9 | + "module": "ESNext", // The type of file to emit (CommonJS/ESM/etc.) |
| 10 | + "esModuleInterop": false, |
18 | 11 | "allowSyntheticDefaultImports": true,
|
19 |
| - "strict": true |
| 12 | + |
| 13 | + // Imports |
| 14 | + "moduleResolution": "bundler", // Resolve import specifiers like bundlers (allows explicit file extensions) |
| 15 | + "moduleDetection": "force", // Enforce that we're always using ESM |
| 16 | + "isolatedModules": true, // Restrict language features not compatible with tools like babel |
| 17 | + "allowImportingTsExtensions": true, // Allow importing `.ts` extensions |
| 18 | + "allowJs": true, // If `true` allows to import `.js` files |
| 19 | + "resolveJsonModule": true, // Allow importing `.json` files |
| 20 | + "forceConsistentCasingInFileNames": true, // Do not allow case-insensitive import file name matching |
| 21 | + "paths": { |
| 22 | + //"@": ["./src"], |
| 23 | + }, |
| 24 | + |
| 25 | + // Type checking |
| 26 | + "lib": ["ES2024"], // Library declaration files to include (globally) |
| 27 | + "skipLibCheck": true, // Do not type check declaration files (for performance) |
| 28 | + "noErrorTruncation": true, |
| 29 | + |
| 30 | + // Language |
| 31 | + "strict": true, |
| 32 | + "exactOptionalPropertyTypes": true, |
| 33 | + "noUncheckedIndexedAccess": true, |
| 34 | + "useDefineForClassFields": true, // Use latest ES spec version of class fields |
| 35 | + |
| 36 | + // Linting |
| 37 | + //"noUnusedLocals": true, |
| 38 | + //"noUnusedParameters": true, |
| 39 | + "noFallthroughCasesInSwitch": true, |
| 40 | + "noUncheckedSideEffectImports": true, |
20 | 41 | },
|
21 | 42 | "include": [
|
22 | 43 | "vite.config.ts",
|
|
0 commit comments