forked from siimon/prom-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
74 lines (74 loc) · 1.55 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
{
"plugins": ["prettier"],
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:prettier/recommended"
],
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2015
},
"rules": {
"no-underscore-dangle": "off",
"no-mixed-requires": "off",
"new-cap": "off",
"no-path-concat": "off",
"no-shadow": "warn",
"no-array-constructor": "error",
"no-caller": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-with": "error",
"no-loop-func": "error",
"no-multi-str": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-unused-expressions": "error",
"no-use-before-define": "off",
"no-new": "off",
"dot-notation": ["error", { "allowKeywords": true }],
"eqeqeq": "error",
"new-parens": "error",
"strict": ["error", "global"],
"yoda": "error",
"valid-jsdoc": "error",
"object-shorthand": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-arrow-callback": "error",
"arrow-body-style": [
"error",
"as-needed",
{ "requireReturnForObjectLiteral": true }
],
"prefer-template": "error"
},
"overrides": [
{
"files": ["test/**/*.js"],
"env": {
"jest": true
},
"rules": {
"no-console": "off",
"no-unused-vars": "off",
"no-shadow": "off",
"no-unused-expressions": "off"
}
},
{
"files": ["example/**/*.js", "benchmarks/**/*.js"],
"rules": {
"no-console": "off"
}
}
]
}