-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
65 lines (50 loc) · 1.09 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
module.exports = {
//TODO: reorder these based on eslint docs
//"parser": "babel-eslint", // for the <3 of generator comprehensions
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true,
},
},
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": 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
// …
// Stylistic Issues
"brace-style": [2, "1tbs"],
"camelcase": [2, { "properties": "always" }],
"quotes": [2, "double", "avoidEscape"],
"require-jsdoc": 2,
// ECMAScript 6
// …
// Legacy
"max-depth": [2, 7],
"max-len": [2, 140],
"max-params": [2, 11],
"max-statements": [2, 42],
},
};