Last Updated: February 25, 2016
·
2.286K
· hevets

Nodejs JSHint configuration

First install JSHint if you don't have it on your machine. The -g will install it globally.

npm install -g jshint

Create a file called .jshintrc in your $HOME directory (note the period)

Add your options to that file as described on the jshint.com webpage.

// Very simple example
{
"strict": true, // forces es5 strict mode
"laxcomma": true // ignores leading commas
}