San3yuan | 4d0e803 | 2025-04-04 17:21:40 +0800 | [diff] [blame^] | 1 | { |
| 2 | "compilerOptions": { |
| 3 | "jsx": "preserve", |
| 4 | |
| 5 | /* Language and Environment */ |
| 6 | "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
| 7 | "module": "commonjs", /* Specify what module code is generated. */ |
| 8 | "rootDir": "./src", /* Specify the root folder within your source files. */ |
| 9 | "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ |
| 10 | "baseUrl": ".", /* Specify the base directory to resolve non-relative module names. */ |
| 11 | "paths": { |
| 12 | "common/*": [ |
| 13 | "src/common/*" |
| 14 | ], |
| 15 | "@/*": [ |
| 16 | "src/*" |
| 17 | ] |
| 18 | }, /* Specify a set of entries that re-map imports to additional lookup locations. */ |
| 19 | "sourceMap": true, |
| 20 | "noImplicitReturns": true, |
| 21 | "importHelpers": true, |
| 22 | "noUnusedLocals": true, |
| 23 | "noFallthroughCasesInSwitch": true, |
| 24 | "noUnusedParameters": true, |
| 25 | "noEmit": true, |
| 26 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ |
| 27 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ |
| 28 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ |
| 29 | /* Type Checking */ |
| 30 | "strict": true, /* Enable all strict type-checking options. */ |
| 31 | "skipLibCheck": true /* Skip type checking all .d.ts files. */ |
| 32 | }, |
| 33 | } |