Just what is a JS linter?
There are many available. JSLint is the oldest, and is still quite good. It doesn’t have a configuration file, which can make customization difficult, but it works pretty well out of the box.
JSHint was developed to be a more customizable version of LSLint.