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
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#