forked from TypeStrong/typedoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
61 lines (58 loc) · 1.89 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"compilerOptions": {
"module": "Node16",
"lib": ["es2021"],
"target": "es2021",
// Add our `ts` internal types
"typeRoots": ["node_modules/@types", "src/lib/types"],
"types": ["node", "lunr", "marked", "mocha"],
// Speed up dev compilation time
"incremental": true,
"tsBuildInfoFile": "dist/.tsbuildinfo",
// "skipLibCheck": true,
"strict": true,
"alwaysStrict": true,
// For tests
"resolveJsonModule": true,
// Linting
"noUnusedLocals": true,
"noUnusedParameters": true,
"forceConsistentCasingInFileNames": true,
// Library
"preserveConstEnums": true,
"declaration": true,
"sourceMap": true,
"declarationMap": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
// Output
"outDir": "dist/",
"rootDir": "src/",
"newLine": "LF",
"jsx": "react",
"jsxFactory": "JSX.createElement",
"jsxFragmentFactory": "JSX.Fragment",
// TS 5 introduced verbatimModuleSyntax and deprecated importsNotUsedAsValues
// But that flag is intentionally very unfriendly to projects emitting CommonJS
// so for now, we're going to ignore that deprecation.
"ignoreDeprecations": "5.0",
"importsNotUsedAsValues": "error",
"isolatedModules": true
},
"include": ["src"],
"exclude": [
"src/lib/output/themes/default/assets",
"src/test/converter",
"src/test/converter2",
"src/test/renderer/specs",
"src/test/.dot",
"src/test/module",
"src/test/packages",
"src/test/slow/entry-points",
"src/test/renderer/testProject"
],
// We use ts-node to support mocha runner directly on files
"ts-node": {
"transpileOnly": true
}
}