fix(@schematics/angular): enable TypeScript skipLibCheck in new workspace#26546
fix(@schematics/angular): enable TypeScript skipLibCheck in new workspace#26546dgp1130 merged 1 commit intoangular:mainfrom
skipLibCheck in new workspace#26546Conversation
…kspace This commit enables `skipLibCheck` in new workspaces which is now recommanded by TypeScript. When enabled, type checking of declaration files is skipped as rather than doing a full check of all `d.ts` files, TypeScript will type check the code you specifically refer to in your app’s source code. See: https://www.typescriptlang.org/tsconfig#skipLibCheck
|
Should we only do this in the build itself? I could see the potential errors being useful in the IDE. |
The LS will not report errors in DTS files. |
|
In that case, i don't think there is a compelling reason not to enable it by default especially if |
dgp1130
left a comment
There was a problem hiding this comment.
At some point we should figure out whether we want to migrate existing apps to enable skipLibCheck too, but that doesn't need to block this.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit enables
skipLibCheckin new workspaces which is now recommended by TypeScript. When enabled, type checking of declaration files is skipped as rather than doing a full check of alld.tsfiles, TypeScript will type check the code you specifically refer to in your app’s source code.See: https://www.typescriptlang.org/tsconfig#skipLibCheck
Note: this option is also enabled by default when running
tsc --initSome more context: microsoft/TypeScript-Website#970