-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.eslintrc
53 lines (53 loc) · 1.51 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
{
"root": true,
"env": {
"node": true
},
"globals": {
// `false` means overwriting is not allowed
"services": false
},
"plugins":[
"lodash"
],
"extends": [
"eslint:recommended",
"plugin:lodash/canonical"
],
"rules": {
// 4-space indentation
"indent": 2,
// Require semicolons
"semi": [2, "always"],
// Require strings to use single quotes
"quotes": [2, "single"],
// Require curly braces for all control statements
"curly": 2,
// Disallow using variables before they've been defined (allow functions)
"no-use-before-define": [2, "nofunc"],
// Allow any case for variable naming
"camelcase": 0,
// Disallow unused variables, except as function arguments
"no-unused-vars": [2, {"args":"none"}],
// Use if () { }
// ^ space
"keyword-spacing": 2,
// Use if () { }
// ^ space
"space-before-blocks": [2, "always"],
// allow use of synchronous methods - TODO: Remove sync methods from code
"no-sync": 0,
// disallow string concatenation with __dirname and __filename
"no-path-concat": 1,
// disallow use of new operator with the require function
"no-new-require": 1,
// disallow mixing regular variable and require declarations
"no-mixed-requires": [1, false],
// enforce return after a callback
"callback-return": 1,
// enforces error handling in callbacks (node environment)
"handle-callback-err": 1,
"no-console": 0,
"max-len": [2, { "code": 120 }]
}
}