Skip to content

Typescript warning (ts7016) is showed in Javascript Files #32148

@wangchou

Description

@wangchou
  • VSCode Version: 1.35.1
  • OS Version: macOS Mojave 10.14.5

Steps to Reproduce:

  1. create a file ended in .js with import like my rollup.config.js

スクリーンショット 0001-06-16 13 49 27

The only workaround I found is adding a typescript config tsconfig.json in my javascript project folder like

{
    "compilerOptions": {
        "outDir": "./xyz",
        "noImplicitAny": true,
        "suppressImplicitAnyIndexErrors": true,
        "allowJs": true
    }
}

I hope one day I could get rid of typescript config from a javascript project...

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions