0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-21 12:39:08 +01:00
mongodb/.eslintrc.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

245 lines
5.2 KiB
YAML
Raw Normal View History

env:
es2022: true
mongo: true
parserOptions:
ecmaVersion: 2022
sourceType: "module"
2016-02-10 22:11:11 +01:00
extends: "eslint:recommended"
rules:
no-prototype-builtins: 0
2016-02-10 22:11:11 +01:00
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
2016-02-10 22:11:11 +01:00
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:
2016-02-10 22:11:11 +01:00
TestData: true
# TODO(mbroadst): Remove the next line when ReplSetTest and ShardingTest are converted to modules.
Thread: true
ReplSetTest: true
ShardingTest: true
WriteError: true
WriteCommandError: true
BulkWriteError: true
2016-02-10 22:11:11 +01:00
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
2016-02-10 22:11:11 +01:00
removeFCVDocument: true
targetFCV: true
2016-02-10 22:11:11 +01:00
assert: true
doassert: true
authutil: true
2016-02-10 22:11:11 +01:00
tojson: true
tojsononeline: true
tostrictjson: true
2016-02-10 22:11:11 +01:00
tojsonObject: true
print: true
2016-02-10 22:11:11 +01:00
printjson: true
printjsononeline: true
jsTest: true
jsTestLog: true
jsonTestLog: true
2016-02-10 22:11:11 +01:00
ErrorCodes: true
ErrorCodeStrings: true
checkProgram: true
Random: true
checkLog: true
sleep: true
2016-02-10 22:11:11 +01:00
resetDbpath: true
copyDbpath: true
jsTestName: true
startParallelShell: true
buildInfo: true
2016-02-10 22:11:11 +01:00
getBuildInfo: true
jsTestOptions: true
2016-02-10 22:11:11 +01:00
printShardingStatus: true
_getErrorWithCode: true
isNetworkError: true
2016-02-10 22:11:11 +01:00
__magicNoPrint: true
computeSHA256Block: true
emit: true
_awaitRSHostViaRSMonitor: true
2016-02-10 22:11:11 +01:00
convertShardKeyToHashed: true
benchRun: true
benchRunSync: true
gc: true
DataConsistencyChecker: true
isNumber: true
isObject: true
isString: true
2016-02-10 22:11:11 +01:00
_createSecurityToken: true
_createTenantToken: true
2016-02-10 22:11:11 +01:00
_isAddressSanitizerActive: true
_isLeakSanitizerActive: true
_isThreadSanitizerActive: true
_isUndefinedBehaviorSanitizerActive: true
_isSpiderMonkeyDebugEnabled: true
_optimizationsEnabled: true
2016-02-10 22:11:11 +01:00
allocatePort: true
allocatePorts: true
resetAllocatedPorts: true
bsonObjToArray: true
_writeTestPipeObjects: true
_writeTestPipe: true
_writeTestPipeBsonFile: true
_readTestPipes: true
runFeatureFlagMultiversionTest: true
isRetryableError: true
2016-02-10 22:11:11 +01:00
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
# 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`
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
2016-02-10 22:11:11 +01:00
startMongoProgramNoConnect: true
2016-02-10 22:11:11 +01:00
# shell-specific
shellPrintHelper: true
shellAutocomplete: true
__autocomplete__: true
2016-02-10 22:11:11 +01:00
getActiveCommands: true
defaultPrompt: true
___it___: true
__promptWrapper__: true
2016-02-10 22:11:11 +01:00
passwordPrompt: true
isInteractive: true
2016-02-10 22:11:11 +01:00
# built-in BSON types and helpers
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
Timestamp: true
MD5: true
Geo: true
2016-02-10 22:11:11 +01:00
bsonWoCompare: true
bsonUnorderedFieldsCompare: true
bsonBinaryEqual: true
2016-02-10 22:11:11 +01:00
friendlyEqual: true
timestampCmp: true
2016-02-10 22:11:11 +01:00
decompressBSONColumn: true
hex_md5: true
2016-02-10 22:11:11 +01:00
QueryHelpers: true
chatty: true
DriverSession: true
ToolTest: true
2016-02-10 22:11:11 +01:00
uncheckedParallelShellPidsString: true
_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
printStackTrace: true
setVerboseShell: true
_barFormat: true
compare: true
2016-02-10 22:11:11 +01:00
compareOn: true
shellPrint: true
2016-02-10 22:11:11 +01:00
_originalPrint: true
disablePrint: true
enablePrint: true
2016-02-10 22:11:11 +01:00
replSetMemberStatePrompt: true
helloStatePrompt: true
2016-02-10 22:11:11 +01:00
_validateMemberIndex: true
help: true
retryOnRetryableError: true