microsoft / microsoft/TypeScript

Provide Grammar Errors for JavaScript Files

Open
#45,349 4 comments 0 reactions 1 assignee View on GitHub

@sandersn is already working on this.

Since Aug 6, 2021.

Awaiting More Feedback Domain: JavaScript Experimentation Needed Rescheduled Suggestion
Dominant language
Go
Stars
111k
Forks
14.4k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.