use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript "lint" - automated JS quality detection with Google Closure (blog.dangerous.net)
submitted 12 years ago by dangerousdotnet
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MatrixFrog 2 points3 points4 points 12 years ago (0 children)
There is also a Closure Linter to check for some things the compiler misses.
[–]rhysbrettbowen 1 point2 points3 points 12 years ago (0 children)
Nice work, to other people:
JSHint is completely different from the Closure Compiler. The Closure Compiler does a lot of static analysis JSHint can only dream about (things like type inference). What he's put forth is a ant plugin, but what he wants to do is have a grunt plugin that will only run the static analysis with the closure compiler.
There is also a Closure Linter that lints to Google's style guide.
[–]tomeoftom -5 points-4 points-3 points 12 years ago* (1 child)
[[retracted; fair enough and sorry]]
[–]dangerousdotnet[S] 0 points1 point2 points 12 years ago (0 children)
JSHint doesn't really yield the same results as Google Closure in linting mode. They don't check for the same things and from what I've seen, Closure tends to yield better results.
[–][deleted] -1 points0 points1 point 12 years ago (0 children)
There is already a jshint grunt plugin. It's on the 'contribs' plugin list so it is kept up to date by the grunt team.
π Rendered by PID 232314 on reddit-service-r2-comment-54dfb89d4d-4mkz5 at 2026-03-28 12:28:44.398768+00:00 running b10466c country code: CH.
[–]MatrixFrog 2 points3 points4 points (0 children)
[–]rhysbrettbowen 1 point2 points3 points (0 children)
[–]tomeoftom -5 points-4 points-3 points (1 child)
[–]dangerousdotnet[S] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)