-
Notifications
You must be signed in to change notification settings - Fork 4
/
.jshintrc
21 lines (21 loc) · 1.51 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"maxerr" : 50, // {int} Maximum error before stopping
"camelcase" : true, // true: Identifiers must be in camelCase
"eqeqeq" : true, // true: Require triple equals (===) for comparison
"latedef" : true, // true: Require variables/functions to be defined before being used
"newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()`
"noempty" : true, // true: Prohibit use of empty blocks
"nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters.
"quotmark" : "single", // Quotation mark consistency:
// false : do nothing (default)
// true : ensure whatever is used is consistent
// "single" : require single quotes
// "double" : require double quotes
"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
"varstmt" : true, // true: Disallow any var statements. Only `let` and `const` are allowed.
"esversion" : 6 // {int} Specify the ECMAScript version to which the code must adhere.
}