-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyExperimentation NeededSomeone needs to try this out to see what happensSomeone needs to try this out to see what happensFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestoneSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
When JavaScript users don't have type-checking turned on, there are often some good suggestions left on the table that go to waste.
Obviously we can't just provide all the errors that checkJs
would issue, but there are a few good ones. Specifically, spelling suggestions could be provided if we were more confident in how useful they are, where confidence is determined by some rules.
Some of the following rules might be worth investigating:
- the suggestion occurs in a module file
- the "misspelled" identifier occurs nowhere else in the program
- the "misspelled" identifier is not a commonly-used identifier in well-known libraries
- the suggestion's edit distance is lower than the usual threshold
ChayimFriedman2, SindreSvendby, briancavalier, styfle, worstpractice and 2 more
Metadata
Metadata
Assignees
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyExperimentation NeededSomeone needs to try this out to see what happensSomeone needs to try this out to see what happensFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestoneSuggestionAn idea for TypeScriptAn idea for TypeScript