forked from express-validator/express-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
54 lines (54 loc) · 1.19 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
{
"root": true,
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 6
},
"globals": {},
"rules": {
"dot-notation": "off",
"curly": [ "error", "all" ],
"eqeqeq": [ "error", "always", {
"null": "ignore"
}],
"indent": [ "error", 2, {
"SwitchCase": 1
}],
"no-use-before-define": [ "error", {
"functions": false
}],
"new-cap": "error",
"no-unused-vars": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-empty": [ "error", {
"allowEmptyCatch": true
}],
"no-new": "error",
"brace-style": [ "error", "1tbs", {
"allowSingleLine": true
}],
"no-with": "error",
"key-spacing": [ "error", {
"beforeColon": false,
"afterColon": true
}],
"space-unary-ops": [ "error", {
"words": false,
"nonwords": false
}],
"space-before-function-paren": [ "error", {
"anonymous": "ignore",
"named": "never"
}],
"no-spaced-func": "error",
"comma-dangle": [ "error", "never" ],
"no-trailing-spaces": "error",
"comma-style": [ "error", "last" ],
"space-infix-ops": "error",
"keyword-spacing": "error"
}
}