Skip to content

Suggestion diagnostics show in untyped JS code when regular diagnostics don't #27852

Open
@ghost

Description

TypeScript Version: 3.2.0-dev.20181011

Code

"".toUperKase();
const b = require("./b");

Expected behavior:

If we're not showing regular diagnostics, we should probably not show any suggestions either.

Actual behavior:

"".toUperKase() is fine. require is a real problem that we need to let the user know about right away!

uperkase

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions