-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jshintrc
41 lines (34 loc) · 1.83 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
32
33
34
35
36
37
38
39
40
41
{
"globals": {
},
"browser": true,
"devel": true,
"node" : false,
"browserify": true,
"eqeqeq": true, // Require triple equals
"eqnull": true, // Tolerate use of `== null`
"curly": true, // Require {} for every new block or scope
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
"laxcomma": true, // Suppress warnings about comma-first coding style.
"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.
"sub": true, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
"undef": true, // Require all non-global variables be declared before they are used.
"latedef": true, // Prohibit variable use before definition.
"strict": true, // Require `use strict` pragma in every file.
"globalstrict": true, // Allow global use strict, wrapped by browserify
"trailing": true, // Prohibit trailing whitespaces.
"unused": "var", // Prohibit unused variable definitions but allow unused function parameters
"laxbreak": false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
"debug": false, // Allow debugger statements
"boss" : false, // Tolerate assignments in conditionals
"evil": false, // Tolerate use of eval
"forin": false, // Tolerate `for in` loops without `hasOwnProperty`
"nonew": false, // Prohibit use of constructors for side-effects. `new Blah()` without storing value
"plusplus": false, // Prohibit `++` & `--`
"regexp": false,
"white": false,
"quotmark": "single", // Enforce use of single quotation marks for strings
"indent": 2
}