-
Notifications
You must be signed in to change notification settings - Fork 21
/
.jshintrc
21 lines (21 loc) · 1.22 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": false, // true: Identifiers must be in camelCase
"curly": true, // true: Require {} for every new block or scope
"eqeqeq": true, // true: Require triple equals (===) for comparison
"forin": true, // true: Require filtering for..in loops with obj.hasOwnProperty()
"freeze": true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
"indent": 4, // {int} Number of spaces to use for indentation
"noempty": true, // true: Prohibit use of empty blocks
"nonbsp": true, // true: Prohibit "non-breaking whitespace" characters.
"nonew": false, // true: Prohibit use of constructors for side-effects (without assignment)
"quotmark": "single",
"undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused": true, // true: Require all defined variables be used
"strict": false, // true: Requires all functions run in ES5 Strict Mode
"devel": false, // Development/debugging (alert, confirm, etc)
"node": true, // Node.js
"globals": {}, // additional predefined global variables
"esversion": 10,
"asi": true // Missing semicolon warning off
}