forked from medic/cht-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
77 lines (77 loc) · 1.45 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"env": {
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6
},
"plugins": [
"no-only-tests",
"jasmine"
],
"rules": {
"curly": "error",
"eqeqeq": "error",
"guard-for-in": "error",
"no-bitwise": "error",
"no-buffer-constructor": "error",
"no-caller": "error",
"no-console": "off",
"no-only-tests/no-only-tests": "error",
"jasmine/no-focused-tests": "error",
"semi": [
"error",
"always"
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
]
},
"overrides": [
{
"files": [
"**/tests/**",
"**/test/**"
],
"globals": {
"_": true,
"after": true,
"afterAll": true,
"afterEach": true,
"assert": true,
"before": true,
"beforeAll": true,
"beforeEach": true,
"browser": true,
"by": true,
"chai": true,
"describe": true,
"element": true,
"emit": true,
"expect": true,
"inject": true,
"it": true,
"KarmaUtils": true,
"moment": true,
"Promise": true,
"protractor": true,
"Q": true,
"sinon": true
},
"rules": {
"no-global-assign": "off"
}
},
{
"files": [ "Gruntfile.js", "grunt/service-worker.js" ],
"env": {
"node": true
}
}
]
}