-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jshintrc
49 lines (49 loc) · 2.7 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
42
43
44
45
46
47
48
49
{
"asi": true, // always use semicolons
"bitwise": true, // not using bitwise operators
"boss": true, // no use of assignments, where comparisons are expected
"camelcase": true, // always camelcasing
"curly": true, // never use blocks without the curly braces
"debug": false, // not using debugger for production code
"eqeqeq": true, // always use === and !== and not == and !=
"eqnull": false, // always check to null with == and not ===
"es5": true, // ecmascript 5 compatibility
"esnext": false, // not use ES.next features like "const"
"evil": false, // never user eval (because it's evil)
"forin": true, // for in loops have to filter for Object.hasOwnProperty
"funcscope": false, // never declare variables in blocks othen than functions
"globalstrict": true, // use global strict mode
"immed": false, // parens around functions are ok
"indent": 2, // 2 spaces indentation
"iterator": true, // because we are in nodejs, we can use __iterator__
"jquery": true, // we are using jquery
"lastsemic": false, // don't miss semicolons
"latedef": true, // explicitely define variables
"laxbreak": false, // warn us about unsafe line breaks
"laxcomma": false, // do not use comma-first style
"loopfunc": false, // do not define functions inside of a loop block
"maxdepth": 2, // maximum nesting blocks
"maxlen": 80, // no line longer than this
"multistr": false, // correct using of multiline strings
"newcap": true, // constructor name always begins with an uppercase letter
"noarg": true, // not using arguments.callee and arguments.caller
"noempty": true, // no empty blocks
"nomen": false, // using dangling _ for "private" things is allowed
"nonew": true, // no new MyConstructor without assigning to a variable
"onecase": false, // do not use switch, if an if-block will be better
"onevar": true, // only use one var statement per function
"plusplus": false, // we allow ++ and --
"proto": true, // we are in nodejs, so we can use __proto__
"quotmark": "single", // only using single quotes for strings
"regexdash": false, // not use unescaped - at the end of regular expressions
"shadow": false, // do not redeclare a variable
"smarttabs": false, // do not use tabs and spaces for indentation
"strict": true, // ecmascript strict mode for function scopes
"sub": false, // dot notation over braces notation
"supernew": false, // do not use new Object or new function or something like
"trailing": true, // no trailing whitespaces
"undef": true, // always declare variables
"unused": true, // mark variables that will never used
"validthis": false, // correct using of this, especially in strict mode
"white": false // strict whitespace would be cool, but it has errors
}