-
Notifications
You must be signed in to change notification settings - Fork 38
/
.eslintrc
49 lines (43 loc) · 1.15 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
{
"extends": [
"eslint:recommended",
"plugin:security/recommended"
],
"rules": {
"no-console": 0,
"max-len": [2, {"ignoreRegExpLiterals": true}],
"no-shadow": 2,
"no-catch-shadow": 2,
"no-shadow-restricted-names": 2,
"radix": 2,
"wrap-iife": 2,
"yoda": 2,
"semi": 2,
"indent": 2,
"camelcase": 2,
"curly": 2,
"brace-style": 2,
"comma-spacing": 2,
"comma-style": 2,
"quotes": [2, "single", "avoid-escape"],
"no-spaced-func": 2,
"keyword-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"operator-linebreak": [2, "before"],
"no-trailing-spaces": 0,
"no-underscore-dangle": 0,
"security/detect-unsafe-regex": 2,
"security/detect-non-literal-regexp": 2,
"security/detect-object-injection": 0
},
"env": {
"node": true
},
"plugins": [
"security"
]
}