-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
30 lines (30 loc) · 1.26 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
{
"bitwise": true, // prevent bitwise operations (e.g. ^, |, &)
"camelcase": true, // all vars must use camelCase
"browser": true, // allow browser global vars
"curly": true, // require curly brackets in loops and conditionals
"eqeqeq": true, // require strict equality
"forin": true, // require hasOwnProperty check in for...in loops
"freeze": true, // prevent native object prototype overwriting
"immed": true, // require immediate function invocations to be wrapped in parens
"indent": 2, // require 2-space indentation
"newcap": true, // require PascalCase constructor function names
"noarg": true, // prevent arguments.callee, because it sucks
"undef": true, // prevent explicitly undeclared variables
"unused": true, // warn when defining variables that are never used
"strict": true, // use strict mode
"node": true, // allow node global vars
"latedef": true, // don't use variables before they're defined
"globals": {
/* MOCHA */
"describe": false,
"it": false,
"before": false,
"beforeEach": false,
"after": false,
"afterEach": false,
/* FACTORY */
"DS": false,
"Promise": true
}
}