Linting is the process of analyzing your code for syntax errors. The great thing about running linters on your code is you can enforce your style guide making sure you keep your code clean.
There are a growing number of linters you can use for your code. Some of the ones I use most often are:
I've put together a zip of all the config files I use for these linters. Download my config.zip file here.