2016-02-09 22:06:30 +01:00
|
|
|
env:
|
2023-02-03 14:59:23 +01:00
|
|
|
es2022: true
|
2016-02-09 22:06:30 +01:00
|
|
|
mongo: true
|
|
|
|
|
2022-11-10 16:57:44 +01:00
|
|
|
parserOptions:
|
2023-02-03 14:59:23 +01:00
|
|
|
ecmaVersion: 2022
|
2022-11-10 16:57:44 +01:00
|
|
|
sourceType: "module"
|
|
|
|
|
2016-02-10 22:11:11 +01:00
|
|
|
extends: "eslint:recommended"
|
2016-02-09 22:06:30 +01:00
|
|
|
rules:
|
2023-07-07 00:43:46 +02:00
|
|
|
no-prototype-builtins: 0
|
2016-02-10 22:11:11 +01:00
|
|
|
no-useless-escape: 0
|
|
|
|
no-irregular-whitespace: 0
|
2023-07-07 00:43:46 +02:00
|
|
|
no-inner-declarations: 0
|
2024-04-04 01:12:53 +02:00
|
|
|
no-unused-vars: [0, {"varsIgnorePattern": "^_", "args": "none"}]
|
2023-07-07 00:43:46 +02:00
|
|
|
no-empty: 0
|
|
|
|
no-redeclare: 0
|
2016-02-10 22:11:11 +01:00
|
|
|
no-constant-condition: 0
|
2023-07-07 00:43:46 +02:00
|
|
|
no-loss-of-precision: 0
|
2024-06-11 15:23:50 +02:00
|
|
|
semi: 2
|
2024-04-04 01:12:53 +02:00
|
|
|
no-restricted-syntax:
|
|
|
|
[
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
message: "Invalid load call. Please convert your library to a module and import it instead.",
|
|
|
|
selector: 'CallExpression > Identifier[name="load"]',
|
|
|
|
},
|
|
|
|
]
|
2023-07-07 00:43:46 +02:00
|
|
|
|
|
|
|
globals:
|
2016-02-10 22:11:11 +01:00
|
|
|
TestData: true
|
|
|
|
# TODO(mbroadst): Remove the next line when ReplSetTest and ShardingTest are converted to modules.
|
2023-07-07 00:43:46 +02:00
|
|
|
Thread: true
|
|
|
|
ReplSetTest: true
|
|
|
|
ShardingTest: true
|
|
|
|
WriteError: true
|
|
|
|
WriteCommandError: true
|
|
|
|
BulkWriteError: true
|
2016-02-10 22:11:11 +01:00
|
|
|
DB: true
|
2023-07-07 00:43:46 +02:00
|
|
|
DBCollection: true
|
|
|
|
DBQuery: true
|
|
|
|
DBExplainQuery: true
|
|
|
|
DBCommandCursor: true
|
2016-02-09 22:06:30 +01:00
|
|
|
MongoBridge: true
|
|
|
|
MongoURI: true
|
2023-07-07 00:43:46 +02:00
|
|
|
WriteConcern: true
|
|
|
|
SessionOptions: true
|
|
|
|
CollInfos: true
|
|
|
|
CountDownLatch: true
|
2024-02-29 18:46:29 +01:00
|
|
|
BSONAwareMap: true
|
2023-07-07 00:43:46 +02:00
|
|
|
|
|
|
|
# FCV-related
|
|
|
|
latestFCV: true
|
|
|
|
lastLTSFCV: true
|
|
|
|
lastContinuousFCV: true
|
|
|
|
checkFCV: true
|
|
|
|
isFCVEqual: true
|
|
|
|
binVersionToFCV: true
|
|
|
|
numVersionsSinceLastLTS: true
|
|
|
|
getFCVConstants: true
|
2016-02-10 22:11:11 +01:00
|
|
|
removeFCVDocument: true
|
2023-07-07 00:43:46 +02:00
|
|
|
targetFCV: true
|
|
|
|
|
2016-02-10 22:11:11 +01:00
|
|
|
assert: true
|
2023-07-07 00:43:46 +02:00
|
|
|
doassert: true
|
|
|
|
authutil: true
|
2016-02-10 22:11:11 +01:00
|
|
|
tojson: true
|
|
|
|
tojsononeline: true
|
2023-07-07 00:43:46 +02:00
|
|
|
tostrictjson: true
|
2016-02-10 22:11:11 +01:00
|
|
|
tojsonObject: true
|
2023-07-07 00:43:46 +02:00
|
|
|
print: true
|
2016-02-10 22:11:11 +01:00
|
|
|
printjson: true
|
|
|
|
printjsononeline: true
|
2023-07-07 00:43:46 +02:00
|
|
|
jsTest: true
|
|
|
|
jsTestLog: true
|
|
|
|
jsonTestLog: true
|
2016-02-10 22:11:11 +01:00
|
|
|
ErrorCodes: true
|
2023-07-07 00:43:46 +02:00
|
|
|
ErrorCodeStrings: true
|
|
|
|
checkProgram: true
|
|
|
|
Random: true
|
|
|
|
checkLog: true
|
|
|
|
sleep: true
|
2016-02-10 22:11:11 +01:00
|
|
|
resetDbpath: true
|
2023-07-07 00:43:46 +02:00
|
|
|
copyDbpath: true
|
|
|
|
jsTestName: true
|
|
|
|
startParallelShell: true
|
|
|
|
buildInfo: true
|
2016-02-10 22:11:11 +01:00
|
|
|
getBuildInfo: true
|
2023-07-07 00:43:46 +02:00
|
|
|
jsTestOptions: true
|
2016-02-10 22:11:11 +01:00
|
|
|
printShardingStatus: true
|
2023-07-07 00:43:46 +02:00
|
|
|
_getErrorWithCode: true
|
|
|
|
isNetworkError: true
|
2016-02-10 22:11:11 +01:00
|
|
|
__magicNoPrint: true
|
2023-07-07 00:43:46 +02:00
|
|
|
computeSHA256Block: true
|
|
|
|
emit: true
|
|
|
|
_awaitRSHostViaRSMonitor: true
|
2016-02-10 22:11:11 +01:00
|
|
|
convertShardKeyToHashed: true
|
2023-07-07 00:43:46 +02:00
|
|
|
benchRun: true
|
|
|
|
benchRunSync: true
|
|
|
|
gc: true
|
|
|
|
DataConsistencyChecker: true
|
|
|
|
isNumber: true
|
|
|
|
isObject: true
|
|
|
|
isString: true
|
2016-02-10 22:11:11 +01:00
|
|
|
_createSecurityToken: true
|
2023-08-23 17:34:05 +02:00
|
|
|
_createTenantToken: true
|
2016-02-10 22:11:11 +01:00
|
|
|
_isAddressSanitizerActive: true
|
2023-08-15 17:55:13 +02:00
|
|
|
_isLeakSanitizerActive: true
|
|
|
|
_isThreadSanitizerActive: true
|
|
|
|
_isUndefinedBehaviorSanitizerActive: true
|
2024-07-17 18:07:16 +02:00
|
|
|
_isSpiderMonkeyDebugEnabled: true
|
2023-08-15 17:55:13 +02:00
|
|
|
_optimizationsEnabled: true
|
2016-02-10 22:11:11 +01:00
|
|
|
allocatePort: true
|
|
|
|
allocatePorts: true
|
|
|
|
resetAllocatedPorts: true
|
|
|
|
bsonObjToArray: true
|
|
|
|
_writeTestPipeObjects: true
|
|
|
|
_writeTestPipe: true
|
2023-07-07 00:43:46 +02:00
|
|
|
_writeTestPipeBsonFile: true
|
|
|
|
_readTestPipes: true
|
|
|
|
runFeatureFlagMultiversionTest: true
|
|
|
|
isRetryableError: true
|
2016-02-10 22:11:11 +01:00
|
|
|
numberDecimalsAlmostEqual: true
|
2023-07-07 00:43:46 +02:00
|
|
|
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
|
2023-08-25 20:05:27 +02:00
|
|
|
_fnvHashToHexString: true
|
2024-07-01 20:31:57 +02:00
|
|
|
_resultSetsEqualUnordered: true
|
2024-05-11 13:58:18 +02:00
|
|
|
getStringWidth: true
|
2023-07-07 00:43:46 +02:00
|
|
|
|
|
|
|
# likely could be replaced with `path`
|
|
|
|
_copyFileRange: true
|
|
|
|
copyFile: true
|
|
|
|
writeFile: true
|
|
|
|
fileExists: true
|
|
|
|
pathExists: true
|
|
|
|
umask: true
|
|
|
|
getFileMode: true
|
|
|
|
|
|
|
|
# likely could be replaced with `child_process`
|
2016-02-09 22:06:30 +01:00
|
|
|
MongoRunner: true
|
2023-07-07 00:43:46 +02:00
|
|
|
run: true
|
|
|
|
runProgram: true
|
2016-02-09 22:06:30 +01:00
|
|
|
runMongoProgram: true
|
|
|
|
runNonMongoProgram: true
|
2023-10-16 19:57:29 +02:00
|
|
|
runNonMongoProgramQuietly: true
|
2016-02-09 22:06:30 +01:00
|
|
|
_runMongoProgram: true
|
|
|
|
_startMongoProgram: true
|
|
|
|
startMongoProgram: true
|
|
|
|
_stopMongoProgram: true
|
|
|
|
stopMongoProgramByPid: true
|
|
|
|
clearRawMongoProgramOutput: true
|
|
|
|
rawMongoProgramOutput: true
|
2023-07-07 00:43:46 +02:00
|
|
|
waitProgram: true
|
2016-02-09 22:06:30 +01:00
|
|
|
waitMongoProgram: true
|
|
|
|
_runningMongoChildProcessIds: true
|
2016-02-10 22:11:11 +01:00
|
|
|
startMongoProgramNoConnect: true
|
2023-07-07 00:43:46 +02:00
|
|
|
|
2016-02-10 22:11:11 +01:00
|
|
|
# shell-specific
|
2023-07-07 00:43:46 +02:00
|
|
|
shellPrintHelper: true
|
|
|
|
shellAutocomplete: true
|
|
|
|
__autocomplete__: true
|
2016-02-10 22:11:11 +01:00
|
|
|
getActiveCommands: true
|
2023-07-07 00:43:46 +02:00
|
|
|
defaultPrompt: true
|
|
|
|
___it___: true
|
|
|
|
__promptWrapper__: true
|
2016-02-10 22:11:11 +01:00
|
|
|
passwordPrompt: true
|
|
|
|
isInteractive: true
|
2023-07-07 00:43:46 +02:00
|
|
|
|
2016-02-10 22:11:11 +01:00
|
|
|
# built-in BSON types and helpers
|
2023-07-07 00:43:46 +02:00
|
|
|
Code: true
|
|
|
|
MaxKey: true
|
|
|
|
MinKey: true
|
|
|
|
HexData: true
|
|
|
|
DBPointer: true
|
|
|
|
DBRef: true
|
|
|
|
BinData: true
|
2016-02-10 22:11:11 +01:00
|
|
|
NumberLong: true
|
|
|
|
NumberDecimal: true
|
2023-07-07 00:43:46 +02:00
|
|
|
Timestamp: true
|
|
|
|
MD5: true
|
|
|
|
Geo: true
|
2016-02-10 22:11:11 +01:00
|
|
|
bsonWoCompare: true
|
|
|
|
bsonUnorderedFieldsCompare: true
|
2023-07-07 00:43:46 +02:00
|
|
|
bsonBinaryEqual: true
|
2016-02-10 22:11:11 +01:00
|
|
|
friendlyEqual: true
|
2023-07-07 00:43:46 +02:00
|
|
|
timestampCmp: true
|
2016-02-10 22:11:11 +01:00
|
|
|
decompressBSONColumn: true
|
2023-07-07 00:43:46 +02:00
|
|
|
|
|
|
|
hex_md5: true
|
2016-02-10 22:11:11 +01:00
|
|
|
QueryHelpers: true
|
|
|
|
chatty: true
|
2017-03-28 19:42:11 +02:00
|
|
|
DriverSession: true
|
2023-07-07 00:43:46 +02:00
|
|
|
ToolTest: true
|
2016-02-10 22:11:11 +01:00
|
|
|
uncheckedParallelShellPidsString: true
|
2023-07-07 00:43:46 +02:00
|
|
|
_shouldRetryWrites: true
|
|
|
|
|
|
|
|
# from_cpp:
|
|
|
|
__prompt__: true
|
|
|
|
_replMonitorStats: true
|
|
|
|
|
|
|
|
# explainable.js
|
|
|
|
Explainable: true
|
|
|
|
|
|
|
|
# utils.js
|
2016-02-10 22:11:11 +01:00
|
|
|
_verboseShell: true
|
|
|
|
__quiet: true
|
2023-07-07 00:43:46 +02:00
|
|
|
printStackTrace: true
|
2016-02-09 22:06:30 +01:00
|
|
|
setVerboseShell: true
|
2023-07-07 00:43:46 +02:00
|
|
|
_barFormat: true
|
|
|
|
compare: true
|
2016-02-10 22:11:11 +01:00
|
|
|
compareOn: true
|
2023-07-07 00:43:46 +02:00
|
|
|
shellPrint: true
|
2016-02-10 22:11:11 +01:00
|
|
|
_originalPrint: true
|
|
|
|
disablePrint: true
|
2023-07-07 00:43:46 +02:00
|
|
|
enablePrint: true
|
2016-02-10 22:11:11 +01:00
|
|
|
replSetMemberStatePrompt: true
|
2023-07-07 00:43:46 +02:00
|
|
|
helloStatePrompt: true
|
2016-02-10 22:11:11 +01:00
|
|
|
_validateMemberIndex: true
|
2023-07-07 00:43:46 +02:00
|
|
|
help: true
|
2024-04-30 16:45:51 +02:00
|
|
|
retryOnRetryableError: true
|