forked from datastax/nodejs-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
123 lines (122 loc) · 3.1 KB
/
.eslintrc.js
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
module.exports = {
"env": {
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
2,
{ "SwitchCase": 1 }
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"off",
"single"
],
"semi": [
"error",
"always"
],
"no-constant-condition": [
"error",
{ "checkLoops": false }
],
"strict": ["error", "global"],
"array-callback-return": "error",
"curly": "error",
"no-unused-vars": ["error", { "args": "none" }],
"global-require": "error",
"eqeqeq": ["error", "allow-null"],
// make sure for-in loops have an if statement
"guard-for-in": "error",
"no-alert": "error",
"no-caller": "error",
"no-case-declarations": "error",
"no-else-return": "error",
"no-empty-pattern": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-floating-decimal": "error",
"no-global-assign": ["error", { exceptions: [] }],
"no-implicit-coercion": ["off", {
boolean: false,
number: true,
string: true,
allow: [],
}],
"no-implied-eval": "error",
"no-labels": ["error", { allowLoop: false, allowSwitch: false }],
"no-lone-blocks": "error",
"no-loop-func": "error",
//
// disallow use of multiple spaces
"no-multi-spaces": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-redeclare": "error",
"no-restricted-properties": ["error", {
object: "arguments",
property: "callee",
message: "arguments.callee is deprecated",
}, {
property: "__defineGetter__",
message: "Please use Object.defineProperty instead.",
}, {
property: "__defineSetter__",
message: "Please use Object.defineProperty instead.",
}],
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "off",
"no-unused-expressions": ["error", {
allowShortCircuit: false,
allowTernary: false,
}],
"no-useless-call": "off",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-useless-return": "error",
"no-void": "error",
"no-with": "error",
"no-buffer-constructor": "error",
radix: "error",
"no-var": "error",
"prefer-const": "error",
"arrow-body-style": ["error", "as-needed"],
"arrow-spacing": "error",
"no-confusing-arrow": ["error", { "allowParens": true }],
"yoda": "error",
"constructor-super": "error"
},
"globals": {
"Buffer": false,
"Promise": true,
"Symbol": false,
"Uint16Array": false,
"Int8Array": false,
"process": false,
"setTimeout": false,
"setImmediate": false,
"clearTimeout": false,
"describe": false,
"it": false,
"context": false,
"after": false,
"afterEach": false,
"before": false,
"beforeEach": false,
"__filename": false
}
};