enable variable related checks in jshint
- Dominant language
- JavaScript
- Stars
- 776
- Forks
- 180
- PR merge metrics
- No merged PRs in 30d
Description
I wrote a short program that highlights the following mistakes related to variables:
- variable shadowing
- creating a variable that's never used
- using a variable that hasn't been assigned a value
https://www.khanacademy.org/computer-programming/variable-mistakes/6677049979437056
I'm proposing that we turn on the following jshint options:
- [shadow](http://jshint.com/docs/options/#shadow)
- [unused](http://jshint.com/docs/options/#unused)
Unfortunately, jshint doesn't have an option to check for use of unassigned variables.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named in the issue. Start by locating the repository's JSHint configuration and checking how linting is run. Done means the shadow and unused checks are enabled; JSHint cannot provide the requested unassigned-variable check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100