Skip to content

Commit 5259ac4

Browse files
Create tsconfig.json
1 parent 30a4b5a commit 5259ac4

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

with-hyperdrive/tsconfig.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"compilerOptions": {
3+
/* Visit https://aka.ms/tsconfig.json to read more about this file */
4+
5+
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6+
"target": "es2021",
7+
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8+
"lib": ["es2021"],
9+
/* Specify what JSX code is generated. */
10+
"jsx": "react-jsx",
11+
12+
/* Specify what module code is generated. */
13+
"module": "es2022",
14+
/* Specify how TypeScript looks up a file from a given module specifier. */
15+
"moduleResolution": "Bundler",
16+
/* Specify type package names to be included without being referenced in a source file. */
17+
"types": [
18+
"@cloudflare/workers-types/2023-07-01"
19+
],
20+
/* Enable importing .json files */
21+
"resolveJsonModule": true,
22+
23+
/* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
24+
"allowJs": true,
25+
/* Enable error reporting in type-checked JavaScript files. */
26+
"checkJs": false,
27+
28+
/* Disable emitting files from a compilation. */
29+
"noEmit": true,
30+
31+
/* Ensure that each file can be safely transpiled without relying on other imports. */
32+
"isolatedModules": true,
33+
/* Allow 'import x from y' when a module doesn't have a default export. */
34+
"allowSyntheticDefaultImports": true,
35+
/* Ensure that casing is correct in imports. */
36+
"forceConsistentCasingInFileNames": true,
37+
38+
/* Enable all strict type-checking options. */
39+
"strict": true,
40+
41+
/* Skip type checking all .d.ts files. */
42+
"skipLibCheck": true
43+
},
44+
"exclude": ["test"],
45+
"include": ["worker-configuration.d.ts", "src/**/*.ts"]
46+
}

0 commit comments

Comments
 (0)