Repository navigation
Expand file tree
/
Copy pathtsconfig.json
More file actions
executable file
·30 lines (28 loc) · 3.18 KB
/
Copy pathtsconfig.json
File metadata and controls
executable file
·30 lines (28 loc) · 3.18 KB
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
{
"compilerOptions": {
"ignoreDeprecations": "6.0", // Silence TS 6.0 deprecation errors (baseUrl, node10 moduleResolution)
/** Linting */
"strict": true, // Enable all strict type-checking options to catch more errors <https://www.typescriptlang.org/tsconfig#strict>
"noImplicitReturns": true, // Ensure that all functions return a value or explicitly return undefined <https://www.typescriptlang.org/tsconfig#noImplicitReturns>
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statements <https://www.typescriptlang.org/tsconfig#noFallthroughCasesInSwitch>
"noUncheckedIndexedAccess": true, // Enable error reporting for accessing properties of arrays and objects without type checks <https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess>
"noImplicitOverride": true, // Ensure that methods in derived classes explicitly override base class methods <https://www.typescriptlang.org/tsconfig#noImplicitOverride>
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file <https://www.typescriptlang.org/tsconfig#forceConsistentCasingInFileNames>
"noErrorTruncation": true, // Disable error truncation to show full error messages <https://www.typescriptlang.org/tsconfig#noErrorTruncation>
/** We handle these with ESLint: */
"noUnusedLocals": false, // Disable the rule for unused local variables <https://www.typescriptlang.org/tsconfig#noUnusedLocals>
"noUnusedParameters": false, // Disable the rule for unused function parameters <https://www.typescriptlang.org/tsconfig#noUnusedParameters>
"resolveJsonModule": true, // Enable importing JSON modules <https://www.typescriptlang.org/tsconfig#resolveJsonModule>
"esModuleInterop": true, // Disable interoperability between CommonJS and ES Modules <https://www.typescriptlang.org/tsconfig#esModuleInterop>
"skipLibCheck": true, // Skip type checking of declaration files (@webgpu/types conflicts with TS6 built-in WebGPU types)
"types": ["node", "jest"], // Include Node.js and Jest type definitions <https://www.typescriptlang.org/tsconfig#types>
/** Module Resolution */
"baseUrl": "./", // Set the base URL for module resolution <https://www.typescriptlang.org/tsconfig#baseUrl>
"paths": {
"@three-text-geometry/*": ["./src/*"],
"@three-text-geometry-tests/*": ["./tests/*"]
}
},
"include": ["src", "tests", "scripts", "e2e"], // Specify directories to include for TypeScript compilation <https://www.typescriptlang.org/tsconfig#include>
"exclude": ["dist-*", "demo"] // Prevent unwanted things like auto-import from built modules <https://www.typescriptlang.org/tsconfig#exclude>
}