I have a project that looks like this:
In the root tsconfig.json
file, I’ve set strictNullCheck: true
But in the nested tsconfig.json
file under apps/app-not-strict/tsconfig.json
I’ve set strictNullCheck: false
.
When I build the app with tsc
I do not get any errors – as expected, since inside the nested tsconfig.json
the strict configuration is relaxed.
However, inside app-not-strict, I get an editor error:
How can I configure vscode to respect the nested tsconfig.json
configuration?
I expect vscode to be aligned with build and not show errors if build is passing.
Note: Here is a repo that shows the issue:
https://github.com/Gorthog/vscode-typescript-issue