mongoose 7.0.0 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.json DELETED
@@ -1,194 +0,0 @@
1
- {
2
- "extends": [
3
- "eslint:recommended"
4
- ],
5
- "ignorePatterns": [
6
- "docs",
7
- "tools",
8
- "dist",
9
- "website.js",
10
- "test/files/*",
11
- "benchmarks"
12
- ],
13
- "overrides": [
14
- {
15
- "files": [
16
- "**/*.{ts,tsx}"
17
- ],
18
- "extends": [
19
- "plugin:@typescript-eslint/eslint-recommended",
20
- "plugin:@typescript-eslint/recommended"
21
- ],
22
- "plugins": [
23
- "@typescript-eslint"
24
- ],
25
- "rules": {
26
- "@typescript-eslint/triple-slash-reference": "off",
27
- "@typescript-eslint/no-non-null-assertion": "off",
28
- "@typescript-eslint/no-empty-function": "off",
29
- "spaced-comment": [
30
- "error",
31
- "always",
32
- {
33
- "block": {
34
- "markers": [
35
- "!"
36
- ],
37
- "balanced": true
38
- },
39
- "markers": [
40
- "/"
41
- ]
42
- }
43
- ],
44
- "@typescript-eslint/no-explicit-any": "off",
45
- "@typescript-eslint/ban-types": "off",
46
- "@typescript-eslint/no-unused-vars": "off",
47
- "@typescript-eslint/explicit-module-boundary-types": "off",
48
- "@typescript-eslint/indent": [
49
- "error",
50
- 2,
51
- {
52
- "SwitchCase": 1
53
- }
54
- ],
55
- "@typescript-eslint/prefer-optional-chain": "error",
56
- "@typescript-eslint/brace-style": "error",
57
- "@typescript-eslint/no-dupe-class-members": "error",
58
- "@typescript-eslint/no-redeclare": "error",
59
- "@typescript-eslint/type-annotation-spacing": "error",
60
- "@typescript-eslint/object-curly-spacing": [
61
- "error",
62
- "always"
63
- ],
64
- "@typescript-eslint/semi": "error",
65
- "@typescript-eslint/space-before-function-paren": [
66
- "error",
67
- "never"
68
- ],
69
- "@typescript-eslint/space-infix-ops": "off"
70
- }
71
- }
72
- ],
73
- "plugins": [
74
- "mocha-no-only"
75
- ],
76
- "parserOptions": {
77
- "ecmaVersion": 2020
78
- },
79
- "env": {
80
- "node": true,
81
- "es6": true
82
- },
83
- "rules": {
84
- "comma-style": "error",
85
- "indent": [
86
- "error",
87
- 2,
88
- {
89
- "SwitchCase": 1,
90
- "VariableDeclarator": 2
91
- }
92
- ],
93
- "keyword-spacing": "error",
94
- "no-whitespace-before-property": "error",
95
- "no-buffer-constructor": "warn",
96
- "no-console": "off",
97
- "no-constant-condition": "off",
98
- "no-multi-spaces": "error",
99
- "func-call-spacing": "error",
100
- "no-trailing-spaces": "error",
101
- "no-undef": "error",
102
- "no-unneeded-ternary": "error",
103
- "no-const-assign": "error",
104
- "no-useless-rename": "error",
105
- "no-dupe-keys": "error",
106
- "space-in-parens": [
107
- "error",
108
- "never"
109
- ],
110
- "spaced-comment": [
111
- "error",
112
- "always",
113
- {
114
- "block": {
115
- "markers": [
116
- "!"
117
- ],
118
- "balanced": true
119
- }
120
- }
121
- ],
122
- "key-spacing": [
123
- "error",
124
- {
125
- "beforeColon": false,
126
- "afterColon": true
127
- }
128
- ],
129
- "comma-spacing": [
130
- "error",
131
- {
132
- "before": false,
133
- "after": true
134
- }
135
- ],
136
- "array-bracket-spacing": 1,
137
- "arrow-spacing": [
138
- "error",
139
- {
140
- "before": true,
141
- "after": true
142
- }
143
- ],
144
- "object-curly-spacing": [
145
- "error",
146
- "always"
147
- ],
148
- "comma-dangle": [
149
- "error",
150
- "never"
151
- ],
152
- "no-unreachable": "error",
153
- "quotes": [
154
- "error",
155
- "single"
156
- ],
157
- "quote-props": [
158
- "error",
159
- "as-needed"
160
- ],
161
- "semi": "error",
162
- "no-extra-semi": "error",
163
- "semi-spacing": "error",
164
- "no-spaced-func": "error",
165
- "no-throw-literal": "error",
166
- "space-before-blocks": "error",
167
- "space-before-function-paren": [
168
- "error",
169
- "never"
170
- ],
171
- "space-infix-ops": "error",
172
- "space-unary-ops": "error",
173
- "no-var": "warn",
174
- "prefer-const": "warn",
175
- "strict": [
176
- "error",
177
- "global"
178
- ],
179
- "no-restricted-globals": [
180
- "error",
181
- {
182
- "name": "context",
183
- "message": "Don't use Mocha's global context"
184
- }
185
- ],
186
- "no-prototype-builtins": "off",
187
- "mocha-no-only/mocha-no-only": [
188
- "error"
189
- ],
190
- "no-empty": "off",
191
- "eol-last": "warn",
192
- "no-multiple-empty-lines": ["warn", { "max": 2 }]
193
- }
194
- }