forked from newrelic/node-newrelic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
57 lines (57 loc) · 1.67 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
{
"env": {
"es6": true,
"node": true,
"browser": false
},
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"indent": ["warn", 2, {"SwitchCase": 1}],
"brace-style": "error",
"comma-dangle": "off",
"comma-style": ["error", "last"],
"consistent-return": "off",
"curly": "off",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"camelcase": ["off", {"properties": "never"}],
"dot-notation": "error",
"func-names": "error",
"guard-for-in": "error",
"key-spacing": ["off", { "beforeColon": false }],
"max-len": ["error", 90, { "ignoreUrls": true }],
"max-nested-callbacks": ["error", 3],
"max-params": ["error", 5],
"new-cap": "error",
"no-console": "warn",
"no-debugger": "error",
"no-else-return": "error",
"no-floating-decimal": "error",
"no-lonely-if": "error",
"no-mixed-requires": "error",
"no-multiple-empty-lines": "error",
"no-multi-spaces": ["off", { "ignoreEOLComments": true }],
"no-new": "error",
"no-new-func": "warn",
"no-shadow": ["warn", {"allow": ["shim"]}],
"no-undef": "error",
"no-unused-vars": "error",
"no-use-before-define": ["off", {"functions": false}],
"one-var": ["off", "never"],
"padded-blocks": ["error", "never"],
"radix": "error",
"semi": ["error", "never"],
"space-before-function-paren": ["error", "never"],
"keyword-spacing": "error",
"space-before-blocks": "error",
"space-infix-ops": "error",
"spaced-comment": "error",
"space-unary-ops": "error",
"strict": "error",
"quote-props": [ "off", "consistent-as-needed" ],
"quotes": ["off", "single"],
"wrap-iife": "error"
}
}