-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
62 lines (53 loc) · 1.92 KB
/
.eslintrc
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
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"env": {
"browser": true,
"amd": true,
"node": true
},
"settings": {
"jsx": true
},
"globals": {
"define": false,
"require": true,
"alert": true,
"console": true,
"module": true,
"describe": true,
"it": true,
"before": true,
"beforeEach": true,
"after": true,
"afterEach": true,
"expect": true,
"should": true,
"Drop": true
},
"rules": {
"dot-notation": 0, // allow obj['somePropertyName']
"new-cap": 0, // do not require 'new' keyword, allows i.e. "var promise = $.Deferred()"
"no-alert": 1, // disallow alerts. there should be so few, manually adding exceptions is ok.
"no-console": 0,
"no-mixed-spaces-and-tabs": 1,
"no-space-before-semi": 1,
"no-spaced-func": 1,
"no-trailing-spaces": 1, // requires a new version of linter-eslint for Atom to work
"no-wrap-func": 0, // needs to be allowed for '(function () {}).should.x' to work in tests
"no-underscore-dangle": 0, // allow _variableName
"no-new": 0, // allow new,
"no-nested-ternary": 1,
// Fix JSX for now...
"no-unused-vars": 0,
"semi": 0,
"no-multi-str": 0,
"unexpected-token": 0,
// disable requirements for strict spacing rules in object properties or assignments
"key-spacing": 0,
"no-multi-spaces": 0,
"quotes": 0, // allow both single and double quotes
"space-after-keywords": 1,
"space-infix-ops": 1,
"space-return-throw-case": 1,
"strict": 0 // do not require strict mode
}
}