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
}
Written by Steve Henderson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jshint
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#