镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

checkJs should imply allowJs #16738

Description

TypeScript Version: 2.3.4

Code

function someJs() {}

Expected behavior:
typechecks ok with --checkJs

Actual behavior:
TS18003: No inputs were found in config file

Activity

  1. changed the title [-]checkJs imply allowJs[/-] [+]checkJs should imply allowJs[/+] on Jun 26, 2017
  2. graingert commented on Jun 26, 2017

    @graingert
    Author

    also setting checkJs true and allowJs false should fail to run

  3. nickserv commented on Apr 24, 2018

    @nickserv
    Contributor

    I agree, I was about to make an issue for this myself. checkJs is invalid without allowJs, and other compilerOptions are implied, so I think it would be more consistent and convenient to imply this as well.

  4. glen-84 commented on Dec 19, 2020

    @glen-84

    Fixed in #40275.

  5. RA80533 commented on Mar 4, 2021

    @RA80533
  6. graingert commented on Jun 24, 2021

    @graingert
    Author

    Nice! Thanks all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions