This repository has been archived by the owner on May 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy path.eslintrc.js
83 lines (82 loc) · 1.77 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module.exports = {
"extends": "loopback",
"env": {
"node": true,
"mocha": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
/*** Loopback Overrides ***/
"brace-style": [
"error",
"stroustrup",
{
"allowSingleLine": true
}
],
"camelcase": [
"warn",
{
"properties": "never"
}
],
"indent": [
"error",
2,
{
"SwitchCase": 2
}
],
"max-len": [
"warn", // TODO: fix and change to "error"
120,
4,
{
"ignoreComments": false,
"ignoreUrls": true,
"ignorePattern": "^\\s*((let)|(const))\\s.+=\\s*require\\s*\\("
}
],
"no-multiple-empty-lines": [
2,
{
"max": 2
}
],
"one-var": 1, // TODO: fix and change to "error"
/*** MCCP Specific ***/
"space-before-function-paren": [
"error",
"always"
],
"no-var": 2,
// "prefer-arrow-callback": 2,
"prefer-spread": 2,
"object-shorthand": [
"error",
"consistent-as-needed"
],
"no-mixed-spaces-and-tabs": 2,
"keyword-spacing": ["error", { "before": true }],
"no-nested-ternary": 2,
"no-new-object": 2,
"curly": [
"error",
"all"
],
"arrow-parens": [
"error",
"always"
],
"block-scoped-var": 2,
"eqeqeq": [
"error",
"always"
],
"no-use-before-define": ["warn", {"functions": true, "classes": true}],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }]
}
}