microsoft / microsoft/TypeScript
Provide Grammar Errors for JavaScript Files
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.