Google closure linter online dating a dating sim game
When this question was originally asked, JSLint was the main linting tool for Java Script.JSHint was a new fork of JSLint, but had not yet diverged much from the original.Some JSLint warnings are more valuable than others: learn which ones to watch out for, and which ones are less important.Every warning should be considered, but don't feel obliged to fix your code to clear any given warning; it's perfectly okay to look at the code and decide you're happy with it; there are times when things that JSlint doesn't like are actually the right thing to do.
is function scoped not block scoped is not a good enough reason to declare variables at the top, variables should always be declared as close to where they are used as possible (programmers.stackexchange.com/questions/56585/…)[email protected] Evans I think you're focussing too much on language implementation details.
As an example, if you think both the A and B below are fine, or if you want to write code with one or more of the aspects of A that aren't available in B, JSHint is for you. declarations, and some of the whitespace enforcements for function declarations.