Skip to content

Honor compilation target when checking JavaScript #4556

@jrieken

Description

@jrieken

There is a code branch for JavaScript specific checks but it doesn't honour the target defined in the compiler options. When ES3 or ES5 is being used these things should be reported as errors as well

  • use of arrow function
  • use of const and let
  • use of default parameter values
  • short hand object literal notation
  • ...

Also, I wonder if this code path can be executed in addition to the semantic analysis instead of instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: JavaScriptThe issue relates to JavaScript specificallyNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions