-
Notifications
You must be signed in to change notification settings - Fork 10
/
.jshintrc
31 lines (31 loc) · 1.92 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"maxerr": 100, // Maximum errors before stopping.
"maxlen": 80, // Maximum line length.
"quotmark": "single", // Consistent quotation mark usage.
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
"curly": true, // Require {} for every new block or scope.
"eqeqeq": true, // Require triple equals i.e. `===`.
"forin": false, // Tolerate `for in` loops without `hasOwnPrototype`.
"immed": true, // Require immediate invocations to be wrapped in parens. E.g. `(function(){})();`.
"latedef": false, // Prohibit variable use before definition.
"newcap": true, // Require capitalization of all constructor functions. E.g. `new F()`.
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"noempty": true, // Prohibit use of empty blocks.
"nonew": true, // Prohibit use of constructors for side-effects.
"undef": true, // Require all non-global variables be declared before they are used.
"unused": true, // Warn when creating a variable but never using it.
"plusplus": false, // Prohibit use of `++` & `--`.
"regexp": false, // Prohibit `.` and `[^...]` in regular expressions.
"strict": false, // Require `use strict` pragma in every file.
"trailing": true, // Prohibit trailing whitespaces.
"boss": true, // Tolerate assignments inside if, for and while. Usually conditions and loops are for comparison, not assignments.
"multistr": false, // Prohibit the use of multi-line strings.
"eqnull": true, // Tolerate use of `== null`.
"expr": true, // Tolerate `ExpressionStatement` as Programs.
"browser": true, // Standard browser globals e.g. `window`, `document`.
"node": true, // Enable standard globals available when code is running inside of the NodeJS runtime environment.
"globals": {
"it": true,
"describe": true
}
}