San3yuan | 4d0e803 | 2025-04-04 17:21:40 +0800 | [diff] [blame] | 1 | { |
| 2 | "compilerOptions": { |
San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 3 | "jsx": "react-jsx", |
San3yuan | 4d0e803 | 2025-04-04 17:21:40 +0800 | [diff] [blame] | 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/*" |
San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 17 | ], |
| 18 | "&/*":[ |
| 19 | "./*" |
San3yuan | 4d0e803 | 2025-04-04 17:21:40 +0800 | [diff] [blame] | 20 | ] |
San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 21 | }, /* Specify a set of entries that re-map imports to additional lookup locations. */ |
San3yuan | 4d0e803 | 2025-04-04 17:21:40 +0800 | [diff] [blame] | 22 | "sourceMap": true, |
| 23 | "noImplicitReturns": true, |
| 24 | "importHelpers": true, |
San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 25 | "noUnusedLocals": false, |
San3yuan | 4d0e803 | 2025-04-04 17:21:40 +0800 | [diff] [blame] | 26 | "noFallthroughCasesInSwitch": true, |
San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 27 | "noUnusedParameters": false, |
San3yuan | 4d0e803 | 2025-04-04 17:21:40 +0800 | [diff] [blame] | 28 | "noEmit": true, |
| 29 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ |
| 30 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ |
| 31 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ |
| 32 | /* Type Checking */ |
| 33 | "strict": true, /* Enable all strict type-checking options. */ |
San3yuan | 2534d42 | 2025-04-08 21:43:18 +0800 | [diff] [blame] | 34 | "skipLibCheck": true /* Skip type checking all .d.ts files. */ |
San3yuan | 4d0e803 | 2025-04-04 17:21:40 +0800 | [diff] [blame] | 35 | }, |
San3yuan | 2534d42 | 2025-04-08 21:43:18 +0800 | [diff] [blame] | 36 | "include": [ |
| 37 | "src", |
San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 38 | "jest.setup.ts", |
| 39 | "typed-css.d.ts",//配置的.d.ts文件 |
| 40 | "typed-image.d.ts" |
San3yuan | 2534d42 | 2025-04-08 21:43:18 +0800 | [diff] [blame] | 41 | ] |
San3yuan | 4d0e803 | 2025-04-04 17:21:40 +0800 | [diff] [blame] | 42 | } |