-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjshintrc
18 lines (18 loc) · 1.2 KB
/
jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"curly" : true, // true: Require {} for every new block or scope
"camelcase" : true, // true: Identifiers must be in camelCase
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
"plusplus" : false, // true: Prohibit use of `++` and `--`
"quotmark" : "double", // Quotation mark consistency:
// false : do nothing (default)
// true : ensure whatever is used is consistent
// "single" : require single quotes
// "double" : require double quotes
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused" : true, // Unused variables:
// true : all variables, last function parameter
// "vars" : all variables only
// "strict" : all variables, all function parameters
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
"maxparams" : false // {int} Max number of formal params allowed per function
}