-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed as not planned
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Description
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
constandlet - 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
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue