-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
68 lines (67 loc) · 1.41 KB
/
.eslintrc.js
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
module.exports = {
"env": {
"browser": true,
"es6": true
},
"globals": {
"sap": true,
"jQuery": true
},
"extends": "eslint:recommended",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"block-scoped-var": 2,
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"consistent-this": 2,
"default-case": 2,
"dot-notation": 2,
"no-eval": 2,
"no-alert": 2,
"no-div-regex": 2,
"no-floating-decimal": 2,
"no-self-compare": 2,
"no-mixed-spaces-and-tabs": [2, true],
"no-nested-ternary": 2,
"no-unused-vars": [2, {"vars":"all", "args":"none"}],
"radix": 2,
"keyword-spacing": [2, {"after": true}],
"space-unary-ops": 2,
"wrap-iife": [2, "any"],
// "camelcase": 2,
"consistent-return": 2,
"max-nested-callbacks": [1, 3],
"new-cap": 1,
"no-extra-boolean-cast": 1,
"no-lonely-if": 1,
"no-new": 1,
"no-new-wrappers": 1,
"no-redeclare": 2,
"no-unused-expressions": 1,
"no-use-before-define": [1, "nofunc"],
"no-warning-comments": 1,
"strict": 2,
// "valid-jsdoc": [1, {
// "requireReturn": false
// }],
"eol-last": 0,
"eqeqeq": 0,
"no-trailing-spaces": 0,
"no-underscore-dangle": 0,
"indent": [
"error",
2
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
};