/
.eslintrc
52 lines (52 loc) · 1.03 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
{
extends: "eslint-config-standard",
rules: {
dot-location: ["error", "object"],
indent: [ "error", 2, {
CallExpression: {
arguments: 2
},
FunctionDeclaration: {
body: 1,
parameters: 2
},
FunctionExpression: {
body: 1,
parameters: 2
},
MemberExpression: 2,
SwitchCase: 1
}],
max-len: ["error", {
code: 80,
ignoreUrls: true,
ignoreRegExpLiterals: true
}],
no-template-curly-in-string: ["off"], // rule for ES6 only
object-curly-spacing: ["off"],
one-var: ["off"],
operator-linebreak: ["error", "after"],
padded-blocks: ["off"],
semi: ["off"],
space-before-function-paren: ["error", "never"]
},
env: {
browser: true,
jquery: true,
mocha: true
},
globals: {
angular: true,
Cesium: true,
expect: true,
FPS: true,
GaCesium: true,
goog: true,
inject: true,
ol: true,
olcs: true,
sinon: true,
Slip: true,
WebKitBlobBuilder: true
}
}