mirror of
https://github.com/zap-proto/lsp.git
synced 2026-10-30 15:04:44 +00:00
typescript 7.0.2 is the native compiler and exports no JavaScript API, so typescript-eslint cannot read it. It comes in aliased as tsgo and runs the build; typescript stays on the 6 line for the tools. The sample's tsconfigs never named strict or esModuleInterop, so TS7's defaults turned both on and reported 7 diagnostics against code that had always compiled loosely. They now say so: strict false, esModuleInterop true, and the CJS namespace import of mocha becomes a default import that interop can construct. Both compilers report 0 diagnostics. Co-authored-by: Hanzo Dev <[email protected]>
15 lines
282 B
JSON
15 lines
282 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "commonjs",
|
|
"esModuleInterop": true,
|
|
"strict": false,
|
|
"target": "es2020",
|
|
"lib": ["es2020"],
|
|
"outDir": "out",
|
|
"rootDir": "src",
|
|
"sourceMap": true
|
|
},
|
|
"include": ["src"],
|
|
"exclude": ["node_modules", ".vscode-test"]
|
|
}
|