-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
55 lines (41 loc) · 918 Bytes
/
.eslintrc
File metadata and controls
55 lines (41 loc) · 918 Bytes
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
{
//TODO: reorder these based on eslint docs
"parser": "babel-eslint", // for the <3 of generator comprehensions
"env": {
"es6": true,
"node": true,
"mocha": true,
"jquery": true,
},
"rules": {
// Possible Errors
"comma-dangle": [2, "always-multiline"],
"valid-jsdoc": 2,
// Best Practices
"block-scoped-var": 2,
"complexity": [2, 15],
"curly": [2, "multi-line"],
"default-case": 2,
"dot-location": [2, "property"],
"guard-for-in": 2,
"no-floating-decimal": 2,
"wrap-iife": 2, //TODO: use "any" instead?
// Strict Mode
"strict": [2, "global"],
// Variables
//
// Node.js
//no-sync ? ? ?
// Stylistic Issues
"brace-style": [2, "1tbs"],
"camelcase": [2, {"properties": "always"}],
"no-underscore-dangle": 0,
// ECMAScript 6
//
// Legacy
"max-depth": [2, 7],
"max-len": [2, 140],
"max-params": [2, 11],
"max-statements": [2, 42],
},
}