-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
.eslintrc.yml
244 lines (231 loc) · 5.2 KB
/
.eslintrc.yml
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
env:
es2022: true
mongo: true
parserOptions:
ecmaVersion: 2022
sourceType: "module"
extends: "eslint:recommended"
rules:
no-prototype-builtins: 0
no-useless-escape: 0
no-irregular-whitespace: 0
no-inner-declarations: 0
no-unused-vars: [0, {"varsIgnorePattern": "^_", "args": "none"}]
no-empty: 0
no-redeclare: 0
no-constant-condition: 0
no-loss-of-precision: 0
semi: 2
no-restricted-syntax:
[
"error",
{
message: "Invalid load call. Please convert your library to a module and import it instead.",
selector: 'CallExpression > Identifier[name="load"]',
},
]
globals:
TestData: true
WriteError: true
WriteCommandError: true
BulkWriteError: true
DB: true
DBCollection: true
DBQuery: true
DBExplainQuery: true
DBCommandCursor: true
MongoBridge: true
MongoURI: true
WriteConcern: true
SessionOptions: true
CollInfos: true
CountDownLatch: true
BSONAwareMap: true
# FCV-related
latestFCV: true
lastLTSFCV: true
lastContinuousFCV: true
checkFCV: true
isFCVEqual: true
binVersionToFCV: true
numVersionsSinceLastLTS: true
getFCVConstants: true
removeFCVDocument: true
targetFCV: true
assert: true
doassert: true
authutil: true
tojson: true
tojsononeline: true
tostrictjson: true
tojsonObject: true
print: true
printjson: true
printjsononeline: true
jsTest: true
jsTestLog: true
jsonTestLog: true
ErrorCodes: true
ErrorCodeStrings: true
checkProgram: true
Random: true
checkLog: true
sleep: true
resetDbpath: true
copyDbpath: true
jsTestName: true
startParallelShell: true
buildInfo: true
getBuildInfo: true
jsTestOptions: true
printShardingStatus: true
_getErrorWithCode: true
isNetworkError: true
__magicNoPrint: true
computeSHA256Block: true
emit: true
_awaitRSHostViaRSMonitor: true
convertShardKeyToHashed: true
benchRun: true
benchRunSync: true
gc: true
DataConsistencyChecker: true
isNumber: true
isObject: true
isString: true
_createSecurityToken: true
_createTenantToken: true
_isAddressSanitizerActive: true
_isLeakSanitizerActive: true
_isThreadSanitizerActive: true
_isUndefinedBehaviorSanitizerActive: true
_isSpiderMonkeyDebugEnabled: true
_optimizationsEnabled: true
allocatePort: true
allocatePorts: true
resetAllocatedPorts: true
bsonObjToArray: true
_writeTestPipeObjects: true
_writeTestPipe: true
_writeTestPipeBsonFile: true
_readTestPipes: true
runFeatureFlagMultiversionTest: true
isRetryableError: true
numberDecimalsAlmostEqual: true
numberDecimalsEqual: true
debug: true
bsonsize: true
_DelegatingDriverSession: true
_DummyDriverSession: true
_ServerSession: true
sortDoc: true
executeNoThrowNetworkError: true
_readDumpFile: true
_openGoldenData: true
_writeGoldenData: true
_threadInject: true
port: true
_buildBsonObj: true
convertTrafficRecordingToBSON: true
_setShellFailPoint: true
shellHelper: true
_srand: true
_shouldUseImplicitSessions: true
testingReplication: true
myPort: true
retryOnNetworkError: true
getJSHeapLimitMB: true
_getEnv: true
indentStr: true
_forgetReplSet: true
_fnvHashToHexString: true
_resultSetsEqualUnordered: true
getStringWidth: true
_compareStringsWithCollation: true
eventResumeTokenType: true
highWaterMarkResumeTokenType: true
# likely could be replaced with `path`
_copyFileRange: true
appendFile: true
copyFile: true
writeFile: true
fileExists: true
pathExists: true
umask: true
getFileMode: true
# likely could be replaced with `child_process`
MongoRunner: true
run: true
runProgram: true
runMongoProgram: true
runNonMongoProgram: true
runNonMongoProgramQuietly: true
_runMongoProgram: true
_startMongoProgram: true
startMongoProgram: true
_stopMongoProgram: true
stopMongoProgramByPid: true
clearRawMongoProgramOutput: true
rawMongoProgramOutput: true
waitProgram: true
waitMongoProgram: true
_runningMongoChildProcessIds: true
startMongoProgramNoConnect: true
# shell-specific
shellPrintHelper: true
shellAutocomplete: true
__autocomplete__: true
defaultPrompt: true
___it___: true
__promptWrapper__: true
passwordPrompt: true
isInteractive: true
# built-in BSON types and helpers
Code: true
MaxKey: true
MinKey: true
HexData: true
DBPointer: true
DBRef: true
BinData: true
NumberLong: true
NumberDecimal: true
Timestamp: true
MD5: true
Geo: true
decodeResumeToken: true
bsonWoCompare: true
bsonUnorderedFieldsCompare: true
bsonBinaryEqual: true
friendlyEqual: true
timestampCmp: true
decompressBSONColumn: true
hex_md5: true
QueryHelpers: true
chatty: true
DriverSession: true
ToolTest: true
uncheckedParallelShellPidsString: true
_shouldRetryWrites: true
# from_cpp:
__prompt__: true
_replMonitorStats: true
# explainable.js
Explainable: true
# utils.js
_verboseShell: true
__quiet: true
printStackTrace: true
setVerboseShell: true
_barFormat: true
compare: true
compareOn: true
shellPrint: true
_originalPrint: true
disablePrint: true
enablePrint: true
replSetMemberStatePrompt: true
helloStatePrompt: true
_validateMemberIndex: true
help: true
retryOnRetryableError: true