Skip to content

Provide Grammar Errors for JavaScript Files #45349

Open
@DanielRosenwasser

Description

@DanielRosenwasser

Recently, we started reporting high-confidence errors for typos as suggestions in the language service. We believe that there is a set of grammar issues that are worth erroring on as well that are not reported today (e.g. duplicate block-scoped variables, extending multiple classes, rest parameters occurring before regular parameters, etc.)

Open questions:

  • How do we implement this as part of our API?
  • What sorts of errors are acceptable here?
  • Would we be giving errors that run against the expectations of any popular runtimes, build tools, or syntax extensions?

Metadata

Metadata

Assignees

Labels

Domain: JavaScriptThe issue relates to JavaScript specificallyExperimentation NeededSomeone needs to try this out to see what happensFix AvailableA PR has been opened for this issueMeta-IssueAn issue about the team, or the direction of TypeScriptRescheduledThis issue was previously scheduled to an earlier milestoneSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions