rust-analyzer/editors/code/tsconfig.json
Tetsuharu Ohzeki bb35d8fa8e editor/code: Set ts' --moduleResolution=node16 option
https://www.typescriptlang.org/tsconfig#moduleResolution

By this change, typescript compiler can read `exports` field in
package.json for dependencies.
https://nodejs.org/api/packages.html#exports-sugar
2023-07-05 00:48:18 +09:00

22 lines
742 B
JSON

{
"extends": "@tsconfig/strictest/tsconfig.json",
"compilerOptions": {
"esModuleInterop": false,
"module": "commonjs",
"moduleResolution": "node16",
"target": "es2021",
"outDir": "out",
"lib": ["es2021"],
"sourceMap": true,
"rootDir": ".",
"newLine": "LF",
// These disables some enhancement type checking options
// to update typescript version without any code change.
"useUnknownInCatchVariables": false,
"exactOptionalPropertyTypes": false,
"noPropertyAccessFromIndexSignature": false,
"noUncheckedIndexedAccess": false
},
"exclude": ["node_modules", ".vscode-test"],
"include": ["src", "tests"]
}