Created
January 20, 2013 02:11
-
-
Save twolfson/4576265 to your computer and use it in GitHub Desktop.
List out every JSHint option on as JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You must be on http://www.jshint.org/docs/ | |
var nameElts = $$('.name'), | |
names = nameElts.map(function (elt) { | |
return elt.textContent || elt.innerText; | |
}), | |
nameProps = names.map(function (name) { | |
return ' ' + name + ': false'; | |
}), | |
retStr = '{\n' + nameProps.join(',\n') + '\n}'; | |
console.log(retStr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment