From 598852f4e89be0e20b1e7fd7dd9773fd72a2d406 Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Fri, 7 Jun 2024 23:16:33 +0800 Subject: [PATCH] Run `eslint` via `precious` --- buildscript/sa.go | 47 +- common.yml | 16 - package-lock.json | 1152 +++++++++++++++++ package.json | 6 + precious.toml | 11 + .../jstests/dump/dump_server_ko_test.js | 14 +- .../jstests/dump/force_table_scan_tests.js | 12 +- .../qa-tests/jstests/dump/oplog_flag_tests.js | 12 +- .../jstests/dump/read_preference_and_tags.js | 10 +- test/qa-tests/jstests/export/bad_options.js | 24 +- test/qa-tests/jstests/export/stdout.js | 10 +- test/qa-tests/jstests/import/boolean_type.js | 4 +- test/qa-tests/jstests/libs/check_log.js | 42 +- .../jstests/libs/test_background_ops.js | 12 +- .../jstests/restore/objcheck_valid_bson.js | 8 +- .../restore/preserve_oplog_structure_order.js | 10 +- .../restore/slash_in_collectionname.js | 4 +- .../jstests/stat/stat_discover_shard.js | 10 +- test/qa-tests/jstests/stat/stat_header.js | 4 +- .../jstests/top/mongotop_validation.js | 24 +- 20 files changed, 1311 insertions(+), 121 deletions(-) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/buildscript/sa.go b/buildscript/sa.go index e255f5f7b..77b072960 100644 --- a/buildscript/sa.go +++ b/buildscript/sa.go @@ -19,6 +19,16 @@ const ( goimportsVersion = "v0.22.0" goimportsPkg = "golang.org/x/tools/cmd/goimports@" + goimportsVersion + // For JS tools like eslint and prettier, these versions need to match the ones in the + // `package.json` file. To update to a new version, run a command like this: + // + // npm install --save-dev --save-exact prettier@3.3.1 + // + // Then update the version in this file as well. + + // This is the latest version to support a YAML config file. Updating to + // the new config file syntax did not seem trivial. + eslintVersion = "8.57.0" golangCILintVersion = "1.59.1" golinesVersion = "0.12.2" gosecVersion = "2.20.0" @@ -46,7 +56,7 @@ func SAInstallDevTools(ctx *task.Context) error { if err := installPrecious(ctx); err != nil { return err } - return installPrettier(ctx) + return installJSTools(ctx) } // Install goimports. @@ -251,13 +261,29 @@ func installBinaryTool( ) } -func installPrettier(ctx *task.Context) error { +// We have to install all the JS tools at once. If we run `npm install ` multiple times, each +// execution wipes the entire `node_modules` directory, so we only end up with one tool (the last +// one) installed. +func installJSTools(ctx *task.Context) error { + eslint, err := eslintPath() + if err != nil { + return err + } + + exists, err := executableExistsWithVersion(ctx, eslint, eslintVersion) + if err != nil { + return err + } + if !exists { + return runNPMInstall(ctx) + } + prettier, err := prettierPath() if err != nil { return err } - exists, err := executableExistsWithVersion(ctx, prettier, prettierVersion) + exists, err = executableExistsWithVersion(ctx, prettier, prettierVersion) if err != nil { return err } @@ -265,14 +291,25 @@ func installPrettier(ctx *task.Context) error { return nil } + return runNPMInstall(ctx) +} + +func runNPMInstall(ctx *task.Context) error { return sh.Run( ctx, "npm", "install", - "--no-save", - fmt.Sprintf("prettier@%s", prettierVersion), ) } +func eslintPath() (string, error) { + root, err := repoRoot() + if err != nil { + return "", err + } + + return filepath.Join(root, "node_modules", ".bin", "eslint"), nil +} + func prettierPath() (string, error) { root, err := repoRoot() if err != nil { diff --git a/common.yml b/common.yml index b4d956c17..cf046027b 100644 --- a/common.yml +++ b/common.yml @@ -1624,21 +1624,6 @@ tasks: set -e ./dev-bin/precious lint --all - - name: lint-js - commands: - - func: "fetch source" - - command: shell.exec - type: test - params: - working_dir: src/github.com/mongodb/mongo-tools - script: | - set -x - set -v - set -e - PATH="/opt/nodejs/node-v16.17.0-linux-x64/bin:$PATH" - npm install eslint@3.2 - node node_modules/eslint/bin/eslint.js test/qa-tests/jstests/**/*.js - - name: qa-tests-5.0 tags: ["5.0"] commands: @@ -1898,7 +1883,6 @@ buildvariants: _platform: rhel80 tasks: - name: lint - - name: lint-js - name: mod-tidy - name: evergreen-validate - name: vet diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..ff33d5eb5 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1152 @@ +{ + "name": "mongo-tools", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "devDependencies": { + "eslint": "8.57.0", + "prettier": "3.3.1" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", + "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "deprecated": "Use @eslint/config-array instead", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "dev": true + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "dev": true + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.1.tgz", + "integrity": "sha512-7CAwy5dRsxs8PHXT3twixW9/OEll8MLE0VRPCJyl7CkS6VHGPSlsVaWTiASPTyGyYRyApxlaWTzwUxVNrhcwDg==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 000000000..a7cca7232 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "devDependencies": { + "eslint": "8.57.0", + "prettier": "3.3.1" + } +} diff --git a/precious.toml b/precious.toml index b346c88e4..c4fb8d3c3 100644 --- a/precious.toml +++ b/precious.toml @@ -112,3 +112,14 @@ labels = [ "default", "fast-tidy" ] # It'd be nice to use prettier to tidy the JS code too, but it seems to make # changes that cause it to fail to parse with the versions of the Mongo shell # we use. + +[commands.eslint] +type = "both" +invoke = "once" +working-dir = "root" +path-args = "file" +include = "test/qa-tests/jstests/**/*.js" +cmd = "$PRECIOUS_ROOT/node_modules/.bin/eslint" +tidy-flags = "--fix" +ok-exit-codes = [0] +lint-failure-exit-codes = [1] diff --git a/test/qa-tests/jstests/dump/dump_server_ko_test.js b/test/qa-tests/jstests/dump/dump_server_ko_test.js index bbe268320..47762177d 100644 --- a/test/qa-tests/jstests/dump/dump_server_ko_test.js +++ b/test/qa-tests/jstests/dump/dump_server_ko_test.js @@ -35,16 +35,16 @@ if (typeof getToolTest === 'undefined') { var shellArgs = ['sleep(1000); ' + (toolTest.authCommand || '') + 'db.getSiblingDB(\'admin\').shutdownServer({ force: true });', - undefined, - undefined, - '--tls', - '--tlsCertificateKeyFile=jstests/libs/client.pem', - '--tlsCAFile=jstests/libs/ca.pem', - '--tlsAllowInvalidHostnames']; + undefined, + undefined, + '--tls', + '--tlsCertificateKeyFile=jstests/libs/client.pem', + '--tlsCAFile=jstests/libs/ca.pem', + '--tlsAllowInvalidHostnames']; koShell = startParallelShell.apply(null, shellArgs); } else { koShell = startParallelShell( - 'sleep(1000); ' + + 'sleep(1000); ' + (toolTest.authCommand || '') + 'db.getSiblingDB(\'admin\').shutdownServer({ force: true });'); } diff --git a/test/qa-tests/jstests/dump/force_table_scan_tests.js b/test/qa-tests/jstests/dump/force_table_scan_tests.js index 143a7ebd9..a7250476c 100644 --- a/test/qa-tests/jstests/dump/force_table_scan_tests.js +++ b/test/qa-tests/jstests/dump/force_table_scan_tests.js @@ -23,12 +23,12 @@ 'for (var i = 0; i < 10000; ++i) { ' + ' db.getSiblingDB(\'foo\').bar.insert({ x: i }); ' + '}', - undefined, - undefined, - '--tls', - '--tlsCertificateKeyFile=jstests/libs/client.pem', - '--tlsCAFile=jstests/libs/ca.pem', - '--tlsAllowInvalidHostnames']; + undefined, + undefined, + '--tls', + '--tlsCertificateKeyFile=jstests/libs/client.pem', + '--tlsCAFile=jstests/libs/ca.pem', + '--tlsAllowInvalidHostnames']; var insertsShell = startParallelShell.apply(null, shellArgs); assert.lt.soon(250, db.bar.count.bind(db.bar), 'should have some documents'); diff --git a/test/qa-tests/jstests/dump/oplog_flag_tests.js b/test/qa-tests/jstests/dump/oplog_flag_tests.js index ee123f427..c72ca7a92 100644 --- a/test/qa-tests/jstests/dump/oplog_flag_tests.js +++ b/test/qa-tests/jstests/dump/oplog_flag_tests.js @@ -31,12 +31,12 @@ 'for (var i = 1001; i < 10000; ++i) { ' + ' db.getSiblingDB(\'foo\').bar.insert({ x: i }); ' + '}', - undefined, - undefined, - '--tls', - '--tlsCertificateKeyFile=jstests/libs/client.pem', - '--tlsCAFile=jstests/libs/ca.pem', - '--tlsAllowInvalidHostnames']; + undefined, + undefined, + '--tls', + '--tlsCertificateKeyFile=jstests/libs/client.pem', + '--tlsCAFile=jstests/libs/ca.pem', + '--tlsAllowInvalidHostnames']; var insertsShell = startParallelShell.apply(null, shellArgs); assert.lt.soon(1000, db.bar.count.bind(db.bar), 'should have more documents'); diff --git a/test/qa-tests/jstests/dump/read_preference_and_tags.js b/test/qa-tests/jstests/dump/read_preference_and_tags.js index b62082af1..887a03452 100644 --- a/test/qa-tests/jstests/dump/read_preference_and_tags.js +++ b/test/qa-tests/jstests/dump/read_preference_and_tags.js @@ -50,11 +50,11 @@ rs.reconfig(conf); runMongoProgram('mongodump', '-vvvv', '--host', "replset/"+primary.host, - '--readPreference={mode:"nearest", tagSets:[{use:"secondary1"}]}', - '--ssl', - '--sslPEMKeyFile=jstests/libs/client.pem', - '--sslCAFile=jstests/libs/ca.pem', - '--sslAllowInvalidHostnames'); + '--readPreference={mode:"nearest", tagSets:[{use:"secondary1"}]}', + '--ssl', + '--sslPEMKeyFile=jstests/libs/client.pem', + '--sslCAFile=jstests/libs/ca.pem', + '--sslAllowInvalidHostnames'); var primaryCount = 0; var secondaryCount = 0; diff --git a/test/qa-tests/jstests/export/bad_options.js b/test/qa-tests/jstests/export/bad_options.js index 2631cbb65..8beaf789f 100644 --- a/test/qa-tests/jstests/export/bad_options.js +++ b/test/qa-tests/jstests/export/bad_options.js @@ -25,38 +25,38 @@ // run mongoexport with bad json as the --query ret = toolTest.runTool.apply(null, ['export', '--db', 'test', - '--collection', 'data', '--query', '{ hello }'].concat(sslOptions)); + '--collection', 'data', '--query', '{ hello }'].concat(sslOptions)); assert.neq(0, ret); // run mongoexport with a bad argument to --skip ret = toolTest.runTool.apply(null, ['export', - '--db', 'test', '--collection', 'data', '--sort', '{a: 1}', - '--skip', 'jamesearljones'].concat(sslOptions)); + '--db', 'test', '--collection', 'data', '--sort', '{a: 1}', + '--skip', 'jamesearljones'].concat(sslOptions)); assert.neq(0, ret); // run mongoexport with a bad argument to --sort ret = toolTest.runTool.apply(null, ['export', - '--db', 'test', '--collection', 'data', '--sort', '{ hello }'] - .concat(sslOptions)); + '--db', 'test', '--collection', 'data', '--sort', '{ hello }'] + .concat(sslOptions)); assert.neq(0, ret); // run mongoexport with a bad argument to --limit ret = toolTest.runTool.apply(null, ['export', '--db', 'test', - '--collection', 'data', '--sort', '{a: 1}', '--limit', 'jamesearljones'] - .concat(sslOptions)); + '--collection', 'data', '--sort', '{a: 1}', '--limit', 'jamesearljones'] + .concat(sslOptions)); assert.neq(0, ret); // run mongoexport with --query and --queryFile ret = toolTest.runTool.apply(null, ['export', '--db', 'test', - '--collection', 'data', - '--query', '{"a":1}', - '--queryFile', 'jstests/export/testdata/query.json'].concat(sslOptions)); + '--collection', 'data', + '--query', '{"a":1}', + '--queryFile', 'jstests/export/testdata/query.json'].concat(sslOptions)); assert.neq(0, ret); // run mongoexport with a --queryFile that doesn't exist ret = toolTest.runTool.apply(null, ['export', '--db', 'test', - '--collection', 'data', - '--queryFile', 'jstests/nope'].concat(sslOptions)); + '--collection', 'data', + '--queryFile', 'jstests/nope'].concat(sslOptions)); assert.neq(0, ret); // success diff --git a/test/qa-tests/jstests/export/stdout.js b/test/qa-tests/jstests/export/stdout.js index b817efb8d..a1cfd57c1 100644 --- a/test/qa-tests/jstests/export/stdout.js +++ b/test/qa-tests/jstests/export/stdout.js @@ -32,11 +32,11 @@ // export the data, writing to stdout var ret = toolTest.runTool('export', '--db', 'test', - '--collection', 'data', - '--ssl', - '--sslPEMKeyFile=jstests/libs/client.pem', - '--sslCAFile=jstests/libs/ca.pem', - '--sslAllowInvalidHostnames'); + '--collection', 'data', + '--ssl', + '--sslPEMKeyFile=jstests/libs/client.pem', + '--sslCAFile=jstests/libs/ca.pem', + '--sslAllowInvalidHostnames'); assert.eq(0, ret); // wait for full output to appear diff --git a/test/qa-tests/jstests/import/boolean_type.js b/test/qa-tests/jstests/import/boolean_type.js index ff6f96d1f..c1a325777 100644 --- a/test/qa-tests/jstests/import/boolean_type.js +++ b/test/qa-tests/jstests/import/boolean_type.js @@ -21,8 +21,8 @@ {key: 'b', bool: Boolean(0)}, {key: 'c', bool: Boolean(140)}, {key: 'd', bool: Boolean(-140.5)}, - {key: 'e', bool: Boolean(Boolean(1))}, - {key: 'f', bool: Boolean(Boolean(0))}, + {key: 'e', bool: Boolean(1)}, + {key: 'f', bool: Boolean(0)}, {key: 'g', bool: Boolean('')}, {key: 'h', bool: Boolean('f')}, {key: 'i', bool: Boolean(null)}, diff --git a/test/qa-tests/jstests/libs/check_log.js b/test/qa-tests/jstests/libs/check_log.js index 4be4fd72b..7a49bceec 100644 --- a/test/qa-tests/jstests/libs/check_log.js +++ b/test/qa-tests/jstests/libs/check_log.js @@ -7,7 +7,7 @@ var checkLog; "use strict"; if (checkLog) { - return; // Protect against this file being double-loaded. + return; // Protect against this file being double-loaded. } checkLog = (function() { @@ -60,32 +60,32 @@ var checkLog; * 'expectedCount'. Early returns when at least 'expectedCount' entries are found. */ let containsWithCount = function( - conn, msg, expectedCount, timeout = 5 * 60 * 1000, exact = true) { + conn, msg, expectedCount, timeout = 5 * 60 * 1000, exact = true) { let expectedStr = exact ? 'exactly ' : 'at least '; assert.soon( - function() { - let count = 0; - let logMessages = getGlobalLog(conn); - if (logMessages === null) { - return false; + function() { + let count = 0; + let logMessages = getGlobalLog(conn); + if (logMessages === null) { + return false; + } + for (let i = 0; i < logMessages.length; i++) { + if (logMessages[i].indexOf(msg) !== -1) { + count++; } - for (let i = 0; i < logMessages.length; i++) { - if (logMessages[i].indexOf(msg) !== -1) { - count++; - } - if (!exact && count >= expectedCount) { - print("checkLog found at least " + expectedCount + + if (!exact && count >= expectedCount) { + print("checkLog found at least " + expectedCount + " log entries containing the following message: " + msg); - return true; - } + return true; } + } - return exact ? expectedCount === count : expectedCount <= count; - }, - 'Did not find ' + expectedStr + expectedCount + ' log entries containing the ' + + return exact ? expectedCount === count : expectedCount <= count; + }, + 'Did not find ' + expectedStr + expectedCount + ' log entries containing the ' + 'following message: ' + msg, - timeout, - 300); + timeout, + 300); }; /* @@ -124,7 +124,7 @@ var checkLog; } } return (Array.isArray(value) ? `[ ${serialized.join(', ')} ]` - : `{ ${serialized.join(', ')} }`); + : `{ ${serialized.join(', ')} }`); }; return { diff --git a/test/qa-tests/jstests/libs/test_background_ops.js b/test/qa-tests/jstests/libs/test_background_ops.js index 58902f51d..a011e5295 100644 --- a/test/qa-tests/jstests/libs/test_background_ops.js +++ b/test/qa-tests/jstests/libs/test_background_ops.js @@ -69,7 +69,7 @@ var isFinished = function(mongo, name) { */ var setResult = function(mongo, name, result, err) { mongo.getCollection("config.testResult") - .update({_id: name}, {_id: name, result: result, err: err}, true); + .update({_id: name}, {_id: name, result: result, err: err}, true); }; /** @@ -118,7 +118,7 @@ var RandomFunctionContext = function(context) { }; Random.randShardKey = function() { - var numFields = 2; // Random.randInt(1, 3) + var numFields = 2; // Random.randInt(1, 3) var key = {}; for (var i = 0; i < numFields; i++) { @@ -141,8 +141,8 @@ var RandomFunctionContext = function(context) { }; Random.randCluster = function() { - var numShards = 2; // Random.randInt( 1, 10 ) - var rs = false; // Random.randBool() + var numShards = 2; // Random.randInt( 1, 10 ) + var rs = false; // Random.randBool() var st = new ShardingTest({shards: numShards, mongos: 4, other: {rs: rs}}); return st; @@ -152,8 +152,8 @@ var RandomFunctionContext = function(context) { startParallelOps = function(mongo, proc, args, context) { var procName = proc.name + "-" + new ObjectId(); var seed = new ObjectId(new ObjectId().valueOf().split("").reverse().join("")) - .getTimestamp() - .getTime(); + .getTimestamp() + .getTime(); // Make sure we aren't finished before we start setFinished(mongo, procName, false); diff --git a/test/qa-tests/jstests/restore/objcheck_valid_bson.js b/test/qa-tests/jstests/restore/objcheck_valid_bson.js index 015d23cdd..085a4e26e 100644 --- a/test/qa-tests/jstests/restore/objcheck_valid_bson.js +++ b/test/qa-tests/jstests/restore/objcheck_valid_bson.js @@ -39,8 +39,8 @@ // dump the data var ret = toolTest.runTool.apply(toolTest, ['dump'] - .concat(getDumpTarget(dumpTarget)) - .concat(commonToolArgs)); + .concat(getDumpTarget(dumpTarget)) + .concat(commonToolArgs)); assert.eq(0, ret); // drop the data @@ -48,8 +48,8 @@ // restore the data, with --objcheck ret = toolTest.runTool.apply(toolTest, ['restore'] - .concat(getRestoreTarget(dumpTarget)) - .concat(commonToolArgs)); + .concat(getRestoreTarget(dumpTarget)) + .concat(commonToolArgs)); assert.eq(0, ret); // make sure the restore completed successfully diff --git a/test/qa-tests/jstests/restore/preserve_oplog_structure_order.js b/test/qa-tests/jstests/restore/preserve_oplog_structure_order.js index 4894c10bf..b5ac6c896 100644 --- a/test/qa-tests/jstests/restore/preserve_oplog_structure_order.js +++ b/test/qa-tests/jstests/restore/preserve_oplog_structure_order.js @@ -29,11 +29,11 @@ // With several executions the chances of all false positives diminishes. for (var i=0; i<10; i++) { var ret = toolTest.runTool('restore', '--oplogReplay', - 'jstests/restore/testdata/dump_with_complex_id_oplog', - '--ssl', - '--sslPEMKeyFile=jstests/libs/client.pem', - '--sslCAFile=jstests/libs/ca.pem', - '--sslAllowInvalidHostnames'); + 'jstests/restore/testdata/dump_with_complex_id_oplog', + '--ssl', + '--sslPEMKeyFile=jstests/libs/client.pem', + '--sslCAFile=jstests/libs/ca.pem', + '--sslAllowInvalidHostnames'); assert.eq(0, ret); } diff --git a/test/qa-tests/jstests/restore/slash_in_collectionname.js b/test/qa-tests/jstests/restore/slash_in_collectionname.js index ffc62b994..03b629546 100644 --- a/test/qa-tests/jstests/restore/slash_in_collectionname.js +++ b/test/qa-tests/jstests/restore/slash_in_collectionname.js @@ -35,8 +35,8 @@ // dump the data var ret = toolTest.runTool.apply(toolTest, ['dump'] - .concat(getDumpTarget(dumpTarget)) - .concat(commonToolArgs)); + .concat(getDumpTarget(dumpTarget)) + .concat(commonToolArgs)); assert.eq(0, ret); sourceDB[sourceCollName].drop(); diff --git a/test/qa-tests/jstests/stat/stat_discover_shard.js b/test/qa-tests/jstests/stat/stat_discover_shard.js index 6d6223cff..3ebd75916 100644 --- a/test/qa-tests/jstests/stat/stat_discover_shard.js +++ b/test/qa-tests/jstests/stat/stat_discover_shard.js @@ -45,11 +45,11 @@ clearRawMongoProgramOutput(); pid = startMongoProgramNoConnect("mongostat", - "--host", st._mongos[0].host, - "--discover", - '--ssl', - '--sslPEMKeyFile=jstests/libs/client.pem', - '--sslCAFile=jstests/libs/ca.pem', '--sslAllowInvalidHostnames'); + "--host", st._mongos[0].host, + "--discover", + '--ssl', + '--sslPEMKeyFile=jstests/libs/client.pem', + '--sslCAFile=jstests/libs/ca.pem', '--sslAllowInvalidHostnames'); assert.soon(hasOnlyPorts(shardPorts), "--discover against a mongos sees all shards"); st.stop(); diff --git a/test/qa-tests/jstests/stat/stat_header.js b/test/qa-tests/jstests/stat/stat_header.js index 41bae70ea..1ba9dc007 100644 --- a/test/qa-tests/jstests/stat/stat_header.js +++ b/test/qa-tests/jstests/stat/stat_header.js @@ -18,12 +18,12 @@ clearRawMongoProgramOutput(); x = runMongoProgram.apply(this, ["mongostat", "--port", toolTest.port, "--rowcount", 1] - .concat(commonToolArgs)); + .concat(commonToolArgs)); assert.soon(outputIncludesHeader, "normally a header appears"); clearRawMongoProgramOutput(); x = runMongoProgram.apply(this, ["mongostat", "--port", toolTest.port, "--rowcount", 1, "--noheaders"] - .concat(commonToolArgs)); + .concat(commonToolArgs)); assert.eq.soon(false, outputIncludesHeader, "--noheaders suppresses the header"); toolTest.stop(); diff --git a/test/qa-tests/jstests/top/mongotop_validation.js b/test/qa-tests/jstests/top/mongotop_validation.js index 4de52dfd3..dfc76039d 100644 --- a/test/qa-tests/jstests/top/mongotop_validation.js +++ b/test/qa-tests/jstests/top/mongotop_validation.js @@ -40,32 +40,32 @@ load('jstests/top/util/mongotop_common.js'); .concat(sslOptions)), 0, '--rowcount assertion failure 1'); assert.neq(runMongoProgram.apply(this, ['mongotop', '--port', conn.port, '--rowcount', 'hello'] - .concat(passthrough.args) - .concat(sslOptions)), 0, '--rowcount assertion failure 2'); + .concat(passthrough.args) + .concat(sslOptions)), 0, '--rowcount assertion failure 2'); assert.neq(runMongoProgram.apply(this, ['mongotop', '--port', conn.port, '--rowcount', ''] - .concat(passthrough.args) - .concat(sslOptions)), 0, '--rowcount assertion failure 3'); + .concat(passthrough.args) + .concat(sslOptions)), 0, '--rowcount assertion failure 3'); // when supplied invalid sleep times assert.neq(runMongoProgram.apply(this, ['mongotop', '--port', conn.port, '-4'] - .concat(passthrough.args) - .concat(sslOptions)), 0, 'sleep time assertion failure 1'); + .concat(passthrough.args) + .concat(sslOptions)), 0, 'sleep time assertion failure 1'); assert.neq(runMongoProgram.apply(this, ['mongotop', '--port', conn.port, 'forever'] - .concat(passthrough.args) - .concat(sslOptions)), 0, 'sleep time assertion failure 2'); + .concat(passthrough.args) + .concat(sslOptions)), 0, 'sleep time assertion failure 2'); // when supplied invalid options assert.neq(runMongoProgram.apply(this, ['mongotop', '--port', conn.port, '--elder'] - .concat(passthrough.args) - .concat(sslOptions)), 0, 'invalid options failure 1'); + .concat(passthrough.args) + .concat(sslOptions)), 0, 'invalid options failure 1'); assert.neq(runMongoProgram.apply(this, ['mongotop', '--port', conn.port, '--price'] - .concat(passthrough.args) - .concat(sslOptions)), 0, 'invalid options failure 2'); + .concat(passthrough.args) + .concat(sslOptions)), 0, 'invalid options failure 2'); t.stop(); };