request @ 2.45.0 - .eslintrc
1
{
2
"env": {
3
"node": true
4
},
5
"rules": {
6
// Disallow semi-colons, except to disambiguate some statements (warning until all violations fixed)
7
"semi": [1, "never"],
8
"no-extra-semi": 1,
9
// Allow only single-quotes, disallow double-quotes (warning until all violations fixed)
10
"quotes": [1, "single"],
11
// Require curly braces for all control statements (warning until all violations fixed)
12
"curly": 1,
13
// Disallow using variables and functions before they've been defined (warning until all violations fixed)
14
"no-use-before-define": 1,
15
// Allow any case for variable naming
16
"camelcase": 0,
17
// Disallow unused variables, except as function arguments
18
"no-unused-vars": [2, {"args":"none"}],
19
// Allow leading underscores for method names
20
// REASON: we use underscores to denote private methods
21
"no-underscore-dangle": 0,
22
// Allow non-require statements mixed in with module require statements
23
// REASON: we use the `optional()` helper, which makes this rule impossible to enforce
24
"no-mixed-requires": 0
25
}
26
}
27