This repository has been archived by the owner on Jun 21, 2019. It is now read-only.
/
.eslintrc
95 lines (95 loc) · 2.36 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"plugins": ["node"],
"extends": [
"eslint:recommended",
"plugin:node/recommended"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2016
},
"rules": {
"strict": ["error", "global"],
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"semi": [
"error",
"always"
],
"node/exports-style": [
"error",
"module.exports"
],
"node/no-unpublished-require": ["error", {
"allowModules": ["chai", "sinon", "mock-knex", "chai-as-promised", "mockery", "fakeredis", "express-brute", "express-brute-redis"],
"tryExtensions": [".js", ".json", ".node"]
}],
"prefer-const": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"no-template-curly-in-string": "error",
"array-callback-return": "error",
"default-case": "error",
"curly": "error",
"guard-for-in": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-extra-bind": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-return-assign": ["error", "except-parens"],
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-useless-return": "error",
"no-void": "error",
"yoda": ["error", "never"],
"no-catch-shadow": "error",
"array-bracket-spacing": ["error", "never", {
"singleValue": true,
"objectsInArrays": true,
"arraysInArrays": true
}],
"block-spacing": "error",
"brace-style": "error",
"comma-dangle": ["error", "never"],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"func-call-spacing": "error",
"key-spacing": "error",
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": "error"
}
}