1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-08-10 17:11:29 +02:00
Files
comprehensive-rust/tests/tsconfig.json
michael-kerscher ce9d74742d tests: fix the includes in test/tsconfig.json and switch to modern node18 module (#2740)
- typescript checking was not properly working before in src/ directory
- https://www.typescriptlang.org/tsconfig/#node16node18nodenext: node18
is the up-to-date module. This picks the module resolution "node16"
- https://www.typescriptlang.org/tsconfig/#moduleResolution recommends
not using node (node10) in modern code
- Update target to ES2024
2025-05-07 09:22:16 +02:00

35 lines
888 B
JSON

{
"compilerOptions": {
// This implicitly sets moduleResolution to "node16"
// https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolution-is-host-defined
"module": "Node18",
"target": "ES2024",
"lib": [
// https://www.typescriptlang.org/tsconfig/#lib
// include APIs that are enabled by ES2024
"ES2024",
// DOM definitions, window, document, etc.
"DOM"
],
"types": [
"node",
"@wdio/globals/types",
"expect-webdriverio",
"@wdio/mocha-framework"
],
"skipLibCheck": true,
"noEmit": true,
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": [
"src/**/*.ts",
"wdio.conf.ts"
]
}