-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Search Terms
noEmit incremental override type-check
Suggestion
If --noEmit
is specified on the command line, ignore the incremental: true
setting from tsconfig.json
.
Use Cases
I want to have a type-check
npm script that runs tsc --noEmit
, only for type checking. Whether incremental
was set to true
in tsconfig.json
, shouldn't prevent that, because this isn't a build.
Examples
Currently, this leads to
Option 'noEmit' cannot be specified with option 'incremental'
Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
strelgastrelga
Metadata
Metadata
Assignees
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript