forked from travisjeffery/mocha-teamcity-reporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
77 lines (76 loc) · 2.01 KB
/
.eslintrc.json
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,
"node": true,
"browser": true,
"mocha": true
},
"extends": "eslint:recommended",
"rules": {
"no-useless-return": "error",
"no-undefined": "error",
"no-undef-init": "error",
"no-eq-null": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-caller": "error",
"no-shadow": "error",
"no-new-func": "error",
"default-case": "error",
"comma-spacing": "error",
"no-shadow-restricted-names": "error",
"no-path-concat": "error",
"no-use-before-define": "error",
"no-duplicate-imports":"error",
"no-useless-rename":"error",
"space-in-parens":"error",
"no-multiple-empty-lines": ["error", {"max":2, "maxEOF": 0, "maxBOF":1}],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"max-params":["error", 5],
"key-spacing":"error",
"strict": ["error", "global"],
"prefer-promise-reject-errors":"error",
"camelcase": ["error", { "properties": "never" }],
"no-unused-vars": ["warn", { "vars": "all", "args": "after-used"}],
"max-len": [
"error",
160,
{
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreRegExpLiterals": true
}
],
//"no-mixed-spaces-and-tab": ["error", "smart-tabs"],
"no-console": 0,
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"semi": [
"error",
"always"
],
//ES6 specific
"arrow-spacing": "error",
"template-curly-spacing": "error",
//Rules to tighten below
"complexity": ["error", 12], //Want to up this to like 5
"arrow-body-style": ["off", "as-needed", {"requireReturnForObjectLiteral" : true}],
"no-regex-spaces": "off",
"no-var":"off",
"prefer-arrow-callback": "off",
"indent": [
"off",
"tab"
]
}
}