|
1 | 1 | {
|
2 | 2 | "compilerOptions": {
|
3 | 3 | /* Visit https://aka.ms/tsconfig to read more about this file */
|
4 |
| - |
5 | 4 | /* Projects */
|
6 | 5 | // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
7 | 6 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
8 | 7 | // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
9 | 8 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
10 | 9 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
11 | 10 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
12 |
| - |
13 | 11 | /* Language and Environment */
|
14 | 12 | "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
15 | 13 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
16 |
| - // "jsx": "preserve", /* Specify what JSX code is generated. */ |
| 14 | + "jsx": "react", /* Specify what JSX code is generated. */ |
17 | 15 | // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
18 | 16 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
19 | 17 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
23 | 21 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
24 | 22 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
25 | 23 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
26 |
| - |
27 | 24 | /* Modules */
|
28 | 25 | "module": "NodeNext", /* Specify what module code is generated. */
|
29 | 26 | "rootDir": "src/", /* Specify the root folder within your source files. */
|
30 | 27 | // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
31 |
| - // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ |
32 |
| - // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ |
| 28 | + "baseUrl": ".", /* Specify the base directory to resolve non-relative module names. */ |
| 29 | + "paths": { |
| 30 | + "@/*": [ |
| 31 | + "src/*" |
| 32 | + ] |
| 33 | + }, /* Specify a set of entries that re-map imports to additional lookup locations. */ |
33 | 34 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
34 | 35 | // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
35 | 36 | // "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
42 | 43 | // "resolveJsonModule": true, /* Enable importing .json files. */
|
43 | 44 | // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
44 | 45 | // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
45 |
| - |
46 | 46 | /* JavaScript Support */
|
47 | 47 | // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
48 | 48 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
49 | 49 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
50 |
| - |
51 | 50 | /* Emit */
|
52 | 51 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
53 | 52 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
72 | 71 | // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
73 | 72 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
74 | 73 | // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
75 |
| - |
76 | 74 | /* Interop Constraints */
|
77 | 75 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
78 | 76 | // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
79 | 77 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
80 | 78 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
81 | 79 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
82 | 80 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
83 |
| - |
84 | 81 | /* Type Checking */
|
85 | 82 | "strict": true, /* Enable all strict type-checking options. */
|
86 | 83 | // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
101 | 98 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
102 | 99 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
103 | 100 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
104 |
| - |
105 | 101 | /* Completeness */
|
106 | 102 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
107 | 103 | "skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
0 commit comments