Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tsc CLI: allow boolean options to have explicit false value #10967

Copy link
Copy link
@alexeagle

Description

@alexeagle
Issue body actions

I have some .d.ts files referenced in the project (from Angular 2) which are not compatible with --strictNullChecks.
I want to enforce strict nulls within my own project though. So I have tsconfig.json with 'strictNullChecks': true specifically to direct my editor to underline these.
In our google-internal build system, we have our own tsc wrapper that does specific type-checks (and uses a different generated tsconfig.json so this all works fine in the build.
But, users benefit from being able to just run a vanilla tsc command on the command line to diagnose setup issues.

So, I'd like to be able to override any setting in the tsconfig.json with a command-line option. In some cases I can do so (eg --target=es5 overrides 'target': 'es6') but with boolean options only the true value can be passed, eg --strictNullChecks

I propose --strictNullChecks=false be accepted on CLI

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.