|
1 | 1 | { |
2 | 2 | "compilerOptions": { |
3 | 3 | /* Basic Options */ |
4 | | - "target": "ES2020", /* the baseline */ |
5 | | - "module": "CommonJS", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ |
6 | | - "lib": ["ES2024", "DOM"], /* Specify library files to be included in the compilation. */ |
| 4 | + "target": "es2020", /* the baseline */ |
| 5 | + "module": "CommonJS", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ |
| 6 | + "lib": [ |
| 7 | + "esnext", |
| 8 | + "dom" |
| 9 | + ], /* Specify library files to be included in the compilation. */ |
7 | 10 | // "allowJs": true, /* Allow javascript files to be compiled. */ |
8 | 11 | // "checkJs": true, /* Report errors in .js files. */ |
9 | 12 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ |
10 | 13 | // "declaration": true, /* Generates corresponding '.d.ts' file. */ |
11 | 14 | // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ |
12 | | - "sourceMap": true, /* Generates corresponding '.map' file. */ |
| 15 | + "sourceMap": true, /* Generates corresponding '.map' file. */ |
13 | 16 | // "outFile": "./", /* Concatenate and emit output to single file. */ |
14 | | - "outDir": "./build", /* Redirect output structure to the directory. */ |
| 17 | + "outDir": "./build", /* Redirect output structure to the directory. */ |
15 | 18 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ |
16 | 19 | // "composite": true, /* Enable project compilation */ |
17 | | - "incremental": true, /* Enable incremental compilation */ |
| 20 | + "incremental": true, /* Enable incremental compilation */ |
18 | 21 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ |
19 | 22 | // "removeComments": true, /* Do not emit comments to output. */ |
20 | 23 | // "noEmit": true, /* Do not emit outputs. */ |
21 | | - "importHelpers": false, /* Import emit helpers from 'tslib'. */ |
| 24 | + "importHelpers": false, /* Import emit helpers from 'tslib'. */ |
22 | 25 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ |
23 | 26 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ |
24 | | - |
25 | 27 | /* Strict Type-Checking Options */ |
26 | | - "strict": true, /* Enable all strict type-checking options. */ |
| 28 | + "strict": true, /* Enable all strict type-checking options. */ |
27 | 29 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ |
28 | 30 | // "strictNullChecks": true, /* Enable strict null checks. */ |
29 | 31 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ |
30 | 32 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ |
31 | 33 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ |
32 | 34 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ |
33 | 35 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ |
34 | | - |
35 | 36 | /* Additional Checks */ |
36 | 37 | // "noUnusedLocals": true, /* Report errors on unused locals. */ |
37 | 38 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ |
38 | | - "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ |
39 | | - "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ |
| 39 | + "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ |
| 40 | + "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ |
40 | 41 | "noUncheckedIndexedAccess": true, |
41 | 42 | "noPropertyAccessFromIndexSignature": true, |
42 | 43 | "noImplicitOverride": true, |
43 | 44 | "verbatimModuleSyntax": false, |
44 | 45 | "allowImportingTsExtensions": true, |
45 | 46 | "noEmit": true, |
46 | | - |
47 | 47 | /* Module Resolution Options */ |
48 | | - "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ |
| 48 | + "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ |
49 | 49 | // "paths": { |
50 | 50 | // "@msgpack/msgpack": ["./src"] |
51 | 51 | // }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ |
52 | 52 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ |
53 | 53 | // "typeRoots": [], /* List of folders to include type definitions from. */ |
54 | 54 | // "types": [], /* Type declaration files to be included in compilation. */ |
55 | 55 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ |
56 | | - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ |
| 56 | + "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ |
57 | 57 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ |
58 | 58 | "resolveJsonModule": true, |
59 | 59 | "skipLibCheck": true, |
60 | 60 | "forceConsistentCasingInFileNames": true |
61 | | - |
62 | 61 | // "erasableSyntaxOnly": true |
63 | | - |
64 | 62 | /* Source Map Options */ |
65 | 63 | // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ |
66 | 64 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ |
67 | 65 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ |
68 | 66 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ |
69 | | - |
70 | 67 | /* Experimental Options */ |
71 | 68 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ |
72 | 69 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ |
73 | 70 | }, |
74 | | - "exclude": ["example", "benchmark", "test/bun*", "test/deno*", "mod.ts"] |
| 71 | + "exclude": [ |
| 72 | + "example", |
| 73 | + "benchmark", |
| 74 | + "test/bun*", |
| 75 | + "test/deno*", |
| 76 | + "mod.ts" |
| 77 | + ] |
75 | 78 | } |
0 commit comments