|
1 | 1 | { |
2 | | - "extends": "./tsconfig.build.json", |
3 | 2 | "compilerOptions": { |
4 | | - "noEmit": true |
| 3 | + "noEmit": true, |
| 4 | + /* Lib Options */ |
| 5 | + "target": "es6" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, |
| 6 | + "lib": [ |
| 7 | + "es2022", |
| 8 | + "DOM", |
| 9 | + "DOM.Iterable" |
| 10 | + ] /* Specify library files to be included in the compilation. */, |
| 11 | + "module": "esnext" /* Specify what module code is generated. */, |
| 12 | + "moduleResolution": "bundler", |
| 13 | + |
| 14 | + /* JavaScript Support */ |
| 15 | + "allowJs": false /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */, |
| 16 | + "checkJs": false /* Enable error reporting in type-checked JavaScript files. */, |
| 17 | + |
| 18 | + /* Build Options */ |
| 19 | + "rootDir": "." /* Specify the root folder within your source files. */, |
| 20 | + "outDir": "./dist" /* Specify an output folder for all emitted files. */, |
| 21 | + "incremental": true /* Enable incremental compilation */, |
| 22 | + "tsBuildInfoFile": "./node_modules/.cache/typescript/tsbuildinfo" /* Specify the folder for .tsbuildinfo incremental compilation files. */, |
| 23 | + "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */, |
| 24 | + "skipLibCheck": true /* Skip type checking all .d.ts files. */, |
| 25 | + "allowImportingTsExtensions": true, |
| 26 | + |
| 27 | + /* Module Options */ |
| 28 | + "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, |
| 29 | + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, |
| 30 | + "isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */, |
| 31 | + |
| 32 | + /* Strict Type-Checking Options */ |
| 33 | + /* Gradually enable more of these until we can enable strict mode. */ |
| 34 | + "strict": false /* Enable all strict type-checking options. */, |
| 35 | + /* Rules enabled so far */ |
| 36 | + "allowUnreachableCode": false /* Disable error reporting for unreachable code. */, |
| 37 | + "allowUnusedLabels": false /* Disable error reporting for unused labels. */, |
| 38 | + "alwaysStrict": true /* Ensure 'use strict' is always emitted. */, |
| 39 | + "noFallthroughCasesInSwitch": true /* Enable error reporting for fallthrough cases in switch statements */, |
| 40 | + "strictNullChecks": true /* When type checking, take into account `null` and `undefined`. */, |
| 41 | + "noImplicitReturns": true /* Enable error reporting for codepaths that do not explicitly return in a function. */, |
| 42 | + "noImplicitThis": true /* Enable error reporting when `this` is given the type `any`. */, |
| 43 | + "noPropertyAccessFromIndexSignature": true /* Enforces using indexed accessors for keys declared using an indexed type */, |
| 44 | + "noUnusedLocals": true /* Enable error reporting when a local variable isn't read. */, |
| 45 | + "noUnusedParameters": true /* Raise an error when a function parameter isn't read */, |
| 46 | + "strictBindCallApply": true /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */, |
| 47 | + "strictBuiltinIteratorReturn": true /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */, |
| 48 | + "useUnknownInCatchVariables": true /* Default catch clause variables as `unknown` instead of `any`. */, |
| 49 | + "strictFunctionTypes": true /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */, |
| 50 | + "strictPropertyInitialization": true /* Check for class properties that are declared but not set in the constructor. */, |
| 51 | + "noImplicitOverride": true /* Ensure overriding members in derived classes are marked with an override modifier. */, |
| 52 | + |
| 53 | + /* Rules to be enabled */ |
| 54 | + "exactOptionalPropertyTypes": false /* Differentiate between undefined and not present when type checking */, |
| 55 | + "noImplicitAny": false /* Enable error reporting for expressions and declarations with an implied 'any' type. */, |
| 56 | + "noUncheckedIndexedAccess": false /* Add `undefined` to a type when accessed using an index. */, |
| 57 | + |
| 58 | + "types": ["@types/node"] |
5 | 59 | }, |
6 | | - "include": [ |
7 | | - "vite.config.ts", |
8 | | - "./src", |
9 | | - "./test", |
10 | | - "eslint.config.ts", |
11 | | - "examples" |
12 | | - ] |
| 60 | + "exclude": ["docs"] |
13 | 61 | } |
0 commit comments