forked from AbdelrahmanHafez/mongoose-cast-aggregation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
116 lines (115 loc) · 2.96 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"parserOptions": {
"ecmaVersion": 9
},
"rules": {
"camelcase": 0,
"comma-dangle": [2, "never"],
"comma-spacing": [2, {
"before": false,
"after": true
}],
"arrow-spacing": [2, {
"before": true,
"after": true
}],
"array-bracket-spacing": 1,
"consistent-return": 0,
"curly": 0,
"default-case": 0,
"eqeqeq": [2, "smart"],
"func-names": 0,
"guard-for-in": 2,
"indent": [2, 2, {
"SwitchCase": 1
}],
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": [2, {
"before": true,
"after": true
}],
"max-len": 0,
"new-cap": [2, {
"newIsCapExceptions": ["mongoose", "mongoose.Schema", "mongoose.Types.ObjectId"],
"capIsNewExceptions": ["Schema", "mongoose.Schema", "mongoose.Types.ObjectId", "ObjectId"]
}],
"no-bitwise": 0,
"no-caller": 2,
"no-console": 0,
"no-else-return": 0,
"no-empty-class": 0,
"no-multi-spaces": 2,
"no-multiple-empty-lines": ["error", {
"max": 5,
"maxBOF": 0
}],
"no-param-reassign": 0,
"no-shadow": 0,
"no-spaced-func": 2,
"func-style": ["error", "declaration"],
"no-throw-literal": 2,
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unneeded-ternary": 2,
"no-unreachable": 2,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-unused-vars": ["error", {
"args": "none"
}],
"id-length": ["error", {
"min": 3,
"exceptions": ["i", "a", "b", "_", "fs", "$", "db", "to", "io", "id"],
"properties": "never"
}],
"no-const-assign": "error",
"object-shorthand": "error",
"no-useless-rename": "error",
"require-await": "error",
"prefer-const": ["error", {
"destructuring": "all"
}],
"prefer-destructuring": ["error", {
"VariableDeclarator": {
"array": true,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": false
}
}],
"eol-last": ["error", "never"],
"no-use-before-define": [1, "nofunc"],
"no-var": ["error"],
"no-dupe-keys": "error",
"object-curly-spacing": [2, "always"],
"one-var": ["error", "never"],
"one-var-declaration-per-line": [2, "always"],
"padded-blocks": 0,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "always"],
"space-infix-ops": 2,
"space-in-parens": [2, "never"],
"spaced-comment": [2, "always"],
"template-curly-spacing": ["error", "never"],
"no-whitespace-before-property": "error",
"strict": 0,
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single"],
"semi": "error",
"no-extra-semi": "error",
"semi-spacing": "error",
"wrap-iife": [2, "outside"],
"prefer-template": "error"
},
"env": {
"node": true,
"mocha": true,
"es6": true
},
"extends": ["plugin:you-dont-need-lodash-underscore/compatible"]
}