forked from trosen333/loopback-connector-rethinkdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
86 lines (81 loc) · 2.43 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
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
{
"ecmaFeatures": {
"modules": true,
"classes": true,
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"defaultParams": true,
"forOf": true,
"generators": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true
},
"env": {
"mocha": true,
"node": true
},
"rules": {
// http://eslint.org/docs/rules/
// BEST PRACTICES WARNINGS
"block-scoped-var": 1,
// BEST PRACTICES ERRORS
"curly": 2,
"default-case": 2,
"no-else-return": 2,
"no-self-compare": 2,
"no-warning-comments": 2,
// STYLE WARNINGS
"no-continue": 1,
"max-nested-callbacks": [1, 3],
// STYLE ERRORS
"strict": 0,
"brace-style": [2, "1tbs", { "allowSingleLine": false }],
"camelcase": [2, {"properties": "always"}],
"comma-spacing": [2, {"before": false, "after": true}],
"consistent-this": [2, "self"],
"func-names": 0,
"indent": [2, 2, {"VariableDeclarator": 2}],
"key-spacing": [2, { "align": "value" }],
"new-cap": 2,
"new-parens": 2,
"no-inline-comments": 2,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-multiple-empty-lines": [2, {"max": 2}],
"no-nested-ternary": 2,
"no-new-object": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-unneeded-ternary": 2,
"no-extra-parens": 2,
"operator-assignment": [2, "always"],
"operator-linebreak": [2, "after"],
"quotes": [2, "single", "avoid-escape"],
"semi-spacing": [2, {"before": false, "after": true}],
"semi": [2, "always"],
"sort-vars": 2,
"space-after-keywords": 2,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-in-parens": [2, "never"],
"space-infix-ops": [2, {"int32Hint": false}],
"space-return-throw-case": 2,
"space-unary-ops": 2,
"spaced-comment": [2, "always", { "exceptions": ["*", "-", "+"]}],
"object-curly-spacing": [2, "always", {
"objectsInObjects": false
}],
"array-bracket-spacing": [2, "always"],
"computed-property-spacing": [2, "always"]
}
}