forked from superdesk/superdesk-client-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
54 lines (54 loc) · 1.61 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
{
"env": {
"browser": true,
"node": true,
"jasmine": true,
"amd": true
},
"globals": {
"$": false,
"$$": false,
"_": false,
"angular": false,
"browser": false,
"by": false,
"element": false,
"gettext": false,
"inject": false,
"moment": false,
"protractor": false,
"requirejs": false
},
"rules": {
"indent": [2, 4],
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"camelcase": [2, {"properties": "never"}],
"comma-dangle": [2, "never"],
"no-cond-assign": [2, "except-parens"],
"valid-jsdoc": [2, {
"requireReturn": false,
"requireReturnDescription": false,
"requireParamDescription": false
}],
"array-bracket-spacing": [2, "never"],
"brace-style": [2, "1tbs", {"allowSingleLine": false}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"no-lonely-if": 2,
"no-multiple-empty-lines": [2, {"max": 2}],
"no-nested-ternary": 2,
"no-unneeded-ternary": 2,
"no-trailing-spaces": 2,
"object-curly-spacing": [2, "never"],
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-in-parens": [2, "never"],
"max-len": [2, 120, 4]
}
}