From 42a466c7dd147c0fa585e4fae9f320ce2200be26 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 3 Oct 2022 10:30:48 +0100 Subject: [PATCH] chore: update eslint (#13366) --- .../jest-core/src/__tests__/watch.test.js | 1 + yarn.lock | 217 +++++++++--------- 2 files changed, 110 insertions(+), 108 deletions(-) diff --git a/packages/jest-core/src/__tests__/watch.test.js b/packages/jest-core/src/__tests__/watch.test.js index ef85c3fe1d13..ef803a2d0a1e 100644 --- a/packages/jest-core/src/__tests__/watch.test.js +++ b/packages/jest-core/src/__tests__/watch.test.js @@ -695,6 +695,7 @@ describe('Watch mode flows', () => { // We need the penultimate call as Jest forces a final call to restore // updateSnapshot because it's not sticky after a run…? const lastCall = updateGlobalConfig.mock.calls.slice(-2)[0]; + // eslint-disable-next-line jest/valid-expect let expector = expect(lastCall[1]); if (!ok) { expector = expector.not; diff --git a/yarn.lock b/yarn.lock index 5e4330a38c9b..242b11727717 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2496,20 +2496,20 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^1.3.0": - version: 1.3.0 - resolution: "@eslint/eslintrc@npm:1.3.0" +"@eslint/eslintrc@npm:^1.3.2": + version: 1.3.2 + resolution: "@eslint/eslintrc@npm:1.3.2" dependencies: ajv: ^6.12.4 debug: ^4.3.2 - espree: ^9.3.2 + espree: ^9.4.0 globals: ^13.15.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 - checksum: a1e734ad31a8b5328dce9f479f185fd4fc83dd7f06c538e1fa457fd8226b89602a55cc6458cd52b29573b01cdfaf42331be8cfc1fec732570086b591f4ed6515 + checksum: 2074dca47d7e1c5c6323ff353f690f4b25d3ab53fe7d27337e2592d37a894cf60ca0e85ca66b50ff2db0bc7e630cc1e9c7347d65bb185b61416565584c38999c languageName: node linkType: hard @@ -2536,14 +2536,14 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/config-array@npm:^0.10.4": - version: 0.10.4 - resolution: "@humanwhocodes/config-array@npm:0.10.4" +"@humanwhocodes/config-array@npm:^0.10.5": + version: 0.10.7 + resolution: "@humanwhocodes/config-array@npm:0.10.7" dependencies: "@humanwhocodes/object-schema": ^1.2.1 debug: ^4.1.1 minimatch: ^3.0.4 - checksum: d480e5d57e6d787565b6cff78e27c3d1b380692d4ffb0ada7d7f5957a56c9032f034da05a3e443065dbd0671ebf4d859036ced34e96b325bbc1badbae3c05300 + checksum: 009d64be8d5bd098ff04e10af79e34f5633245250581fca032fac12a8667b2df8e7d169e69c05bff4d83ea3dd3c7d2d0e05ea9b94d89a7d092e26530caf6f8a3 languageName: node linkType: hard @@ -2554,6 +2554,13 @@ __metadata: languageName: node linkType: hard +"@humanwhocodes/module-importer@npm:^1.0.1": + version: 1.0.1 + resolution: "@humanwhocodes/module-importer@npm:1.0.1" + checksum: 0fd22007db8034a2cdf2c764b140d37d9020bbfce8a49d3ec5c05290e77d4b0263b1b972b752df8c89e5eaa94073408f2b7d977aed131faf6cf396ebb5d7fb61 + languageName: node + linkType: hard + "@humanwhocodes/object-schema@npm:^1.2.1": version: 1.2.1 resolution: "@humanwhocodes/object-schema@npm:1.2.1" @@ -3648,9 +3655,9 @@ __metadata: languageName: node linkType: hard -"@pkgr/utils@npm:^2.3.0": - version: 2.3.0 - resolution: "@pkgr/utils@npm:2.3.0" +"@pkgr/utils@npm:^2.3.1": + version: 2.3.1 + resolution: "@pkgr/utils@npm:2.3.1" dependencies: cross-spawn: ^7.0.3 is-glob: ^4.0.3 @@ -3658,7 +3665,7 @@ __metadata: picocolors: ^1.0.0 tiny-glob: ^0.2.9 tslib: ^2.4.0 - checksum: d2fe95c51d548497425182b284dea8155d9e80bb36fa744c670174d7deae53743b13aa9f63a8bfaa8b31dcf7c53dc279a99372f2c2c35ff9fcebf91c5c5c8190 + checksum: 118a1971120253740121a1db0a6658c21195b7da962acf9c124b507a3df707cfc97b0b84a16edcbd4352853b182e8337da9fc6e8e3d06c60d75ae4fb42321c75 languageName: node linkType: hard @@ -4498,13 +4505,13 @@ __metadata: linkType: hard "@types/express-serve-static-core@npm:*, @types/express-serve-static-core@npm:^4.17.18": - version: 4.17.30 - resolution: "@types/express-serve-static-core@npm:4.17.30" + version: 4.17.31 + resolution: "@types/express-serve-static-core@npm:4.17.31" dependencies: "@types/node": "*" "@types/qs": "*" "@types/range-parser": "*" - checksum: c40d9027884ab9e97fa29d9d41d1b75a5966109312e26594cf03c61b278b5bf8e095f53589e47899b34a2e224291a44043617695c3e8bd22284f988e48582ee6 + checksum: 009bfbe1070837454a1056aa710d0390ee5fb8c05dfe5a1691cc3e2ca88dc256f80e1ca27cb51a978681631d2f6431bfc9ec352ea46dd0c6eb183d0170bde5df languageName: node linkType: hard @@ -5101,14 +5108,13 @@ __metadata: linkType: hard "@typescript-eslint/eslint-plugin@npm:^5.14.0": - version: 5.36.1 - resolution: "@typescript-eslint/eslint-plugin@npm:5.36.1" + version: 5.38.1 + resolution: "@typescript-eslint/eslint-plugin@npm:5.38.1" dependencies: - "@typescript-eslint/scope-manager": 5.36.1 - "@typescript-eslint/type-utils": 5.36.1 - "@typescript-eslint/utils": 5.36.1 + "@typescript-eslint/scope-manager": 5.38.1 + "@typescript-eslint/type-utils": 5.38.1 + "@typescript-eslint/utils": 5.38.1 debug: ^4.3.4 - functional-red-black-tree: ^1.0.1 ignore: ^5.2.0 regexpp: ^3.2.0 semver: ^7.3.7 @@ -5119,43 +5125,43 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: a4c555688d840c3ff0d3d71ceca583291e206cc523eade45c56fb8e1c8af84ae50ef8d344cdf8e3f9c38f430bc03c95eb8d49870094e0e5b57e0fa3e61c0ec91 + checksum: a8895588022f75b2bf994ce52f7109d8814e0f5b3bef0d4fac19dc86a926202ca204bfca8c0e5a033d7566bae90815a772b64bcdc61c349f47ddd52d91989de5 languageName: node linkType: hard "@typescript-eslint/parser@npm:^5.14.0": - version: 5.36.1 - resolution: "@typescript-eslint/parser@npm:5.36.1" + version: 5.38.1 + resolution: "@typescript-eslint/parser@npm:5.38.1" dependencies: - "@typescript-eslint/scope-manager": 5.36.1 - "@typescript-eslint/types": 5.36.1 - "@typescript-eslint/typescript-estree": 5.36.1 + "@typescript-eslint/scope-manager": 5.38.1 + "@typescript-eslint/types": 5.38.1 + "@typescript-eslint/typescript-estree": 5.38.1 debug: ^4.3.4 peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 0f0f94e56ae1d55b6e7223ce5a2b0c93e5cc082ef2951a2b24ae4b22bb8ffbeb90d2d16682bfa8bc972ba2c7fb4703aedd79b7dbd09bcee397e1ab90d11506d9 + checksum: 3f84b33d598d9acef99f087bdfe319e74f838d3442d6a15f2498f077a1473f124e3ec6698dbb256f56c51ce38abd91c0ffb90f0856989309e28c43e005d99215 languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:5.36.1": - version: 5.36.1 - resolution: "@typescript-eslint/scope-manager@npm:5.36.1" +"@typescript-eslint/scope-manager@npm:5.38.1": + version: 5.38.1 + resolution: "@typescript-eslint/scope-manager@npm:5.38.1" dependencies: - "@typescript-eslint/types": 5.36.1 - "@typescript-eslint/visitor-keys": 5.36.1 - checksum: c46497226af75baed7458838ec0bfbddf19f8084115d78b915b46a8ceb4c05619ac61da127dfd3c8ee11bc916896d57bf8b9f936b0306ce69658160f910e3ad0 + "@typescript-eslint/types": 5.38.1 + "@typescript-eslint/visitor-keys": 5.38.1 + checksum: c3b38ca0074d09e26c30b4385c18933f8a6418c923a24c7f4c2297af60a85d604320f119863676f49ea4254b3c01c112504547436eda4951ade609e8d7f438a7 languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:5.36.1": - version: 5.36.1 - resolution: "@typescript-eslint/type-utils@npm:5.36.1" +"@typescript-eslint/type-utils@npm:5.38.1": + version: 5.38.1 + resolution: "@typescript-eslint/type-utils@npm:5.38.1" dependencies: - "@typescript-eslint/typescript-estree": 5.36.1 - "@typescript-eslint/utils": 5.36.1 + "@typescript-eslint/typescript-estree": 5.38.1 + "@typescript-eslint/utils": 5.38.1 debug: ^4.3.4 tsutils: ^3.21.0 peerDependencies: @@ -5163,23 +5169,23 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: d2905289e253a83a9eacbad765cfba03440663086c8beb1b19345b46593c9053fb051ee13d3cc27ccd800fe95ffbf3be2b1273b0f0ac6a59452fc94e6460898b + checksum: 1e5fbb5cd2cd97d8d6aaf6b0d1262517e74aba006ffc61526528352a8ab99205456d6247da8252388e868ed7ee8f6c2fa8e108dad68b696cbdbcef6473579173 languageName: node linkType: hard -"@typescript-eslint/types@npm:5.36.1": - version: 5.36.1 - resolution: "@typescript-eslint/types@npm:5.36.1" - checksum: 10c8965c64e16bc6920dc0c62aae2b139062aca945d03df2ad6fe7c299d2faa684621d571f8d9807a67643d4e9fa5217c69d5f538f9936fc757f9df5ded57623 +"@typescript-eslint/types@npm:5.38.1": + version: 5.38.1 + resolution: "@typescript-eslint/types@npm:5.38.1" + checksum: 384f7fe9a1995d87507049a868aa1a1f9eb28af913e704540e1494c8c630985f9ef4f4e6bdd4df0d83cbe4611c4e6f4f07d5d91bfa57c88242fb227a6d828b7e languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:5.36.1": - version: 5.36.1 - resolution: "@typescript-eslint/typescript-estree@npm:5.36.1" +"@typescript-eslint/typescript-estree@npm:5.38.1": + version: 5.38.1 + resolution: "@typescript-eslint/typescript-estree@npm:5.38.1" dependencies: - "@typescript-eslint/types": 5.36.1 - "@typescript-eslint/visitor-keys": 5.36.1 + "@typescript-eslint/types": 5.38.1 + "@typescript-eslint/visitor-keys": 5.38.1 debug: ^4.3.4 globby: ^11.1.0 is-glob: ^4.0.3 @@ -5188,33 +5194,33 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: acaf2938001673918dbbe690a353cf92e2cfabc79f74cd5946e303a8c24eb9c08ae2053dd261810ed0c9c471ebe879f386564c1b01dd2504dc84f4ce5f4dc696 + checksum: ec73496f73bd7f97d1585d25484874f092141a5f92ade7bd324fb76ef52888f0d77cc4375bdecc92cc3bacf5d61d65197acbb9af4fd9322b51db286c68a320c6 languageName: node linkType: hard -"@typescript-eslint/utils@npm:5.36.1, @typescript-eslint/utils@npm:^5.10.0": - version: 5.36.1 - resolution: "@typescript-eslint/utils@npm:5.36.1" +"@typescript-eslint/utils@npm:5.38.1, @typescript-eslint/utils@npm:^5.10.0": + version: 5.38.1 + resolution: "@typescript-eslint/utils@npm:5.38.1" dependencies: "@types/json-schema": ^7.0.9 - "@typescript-eslint/scope-manager": 5.36.1 - "@typescript-eslint/types": 5.36.1 - "@typescript-eslint/typescript-estree": 5.36.1 + "@typescript-eslint/scope-manager": 5.38.1 + "@typescript-eslint/types": 5.38.1 + "@typescript-eslint/typescript-estree": 5.38.1 eslint-scope: ^5.1.1 eslint-utils: ^3.0.0 peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: 77853d526af86ac508d7938916046ed4ad6374c7414981064c5122a2baa96fa234751137f481ac264a07387fd4dcec1cd26b33e29732cc58e855aae77a001d7c + checksum: 06646ddeb6c1a5dac01e8336dff458cf37dff0d3d5a2f304048a4d6d8f62d504c5330a8b046ec66f6777f324bc1afe6a3f7ea1c5b015b123ab7062e8e22aff67 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:5.36.1": - version: 5.36.1 - resolution: "@typescript-eslint/visitor-keys@npm:5.36.1" +"@typescript-eslint/visitor-keys@npm:5.38.1": + version: 5.38.1 + resolution: "@typescript-eslint/visitor-keys@npm:5.38.1" dependencies: - "@typescript-eslint/types": 5.36.1 + "@typescript-eslint/types": 5.38.1 eslint-visitor-keys: ^3.3.0 - checksum: 45ab7c2fd455a8e4beff418bed6c9e7e1f9f66bcaad3bfaed868f97a3f8cfec1fa4faa45948af1a1c32ce573a7b1c6d10427119c257622445b06b488fefd8b49 + checksum: 01c83a42900f8ab721bd0857abcc000a15183eb26d2d61cceeaef018a83a91325f48c0112d4356383c41dce23174a305bb3352af4705a61d1da46f8ac0e88340 languageName: node linkType: hard @@ -9034,30 +9040,32 @@ __metadata: linkType: hard "eslint-import-resolver-typescript@npm:^3.2.5": - version: 3.4.0 - resolution: "eslint-import-resolver-typescript@npm:3.4.0" + version: 3.5.1 + resolution: "eslint-import-resolver-typescript@npm:3.5.1" dependencies: debug: ^4.3.4 enhanced-resolve: ^5.10.0 get-tsconfig: ^4.2.0 globby: ^13.1.2 - is-core-module: ^2.9.0 + is-core-module: ^2.10.0 is-glob: ^4.0.3 - synckit: ^0.8.1 + synckit: ^0.8.3 peerDependencies: eslint: "*" eslint-plugin-import: "*" - checksum: 42fa7fbf7a2144d27152567a2f2a6e6847d964a87ef7da29f559d09be44d0328a1894ea5186cf0824cecf3c9aec95bbb481d8ecbc129a3dd21614fbf3eb9a3b6 + checksum: d7a7a33c9fd8b52ae25bd432c3e0b157a9c38d1254325311e04f450083197d47d823ebca447e7b5bfe9b9a959de8d2edbafb028406c2532fd7aa95fe31812a48 languageName: node linkType: hard "eslint-module-utils@npm:^2.7.3": - version: 2.7.3 - resolution: "eslint-module-utils@npm:2.7.3" + version: 2.7.4 + resolution: "eslint-module-utils@npm:2.7.4" dependencies: debug: ^3.2.7 - find-up: ^2.1.0 - checksum: 77048263f309167a1e6a1e1b896bfb5ddd1d3859b2e2abbd9c32c432aee13d610d46e6820b1ca81b37fba437cf423a404bc6649be64ace9148a3062d1886a678 + peerDependenciesMeta: + eslint: + optional: true + checksum: 5da13645daff145a5c922896b258f8bba560722c3767254e458d894ff5fbb505d6dfd945bffa932a5b0ae06714da2379bd41011c4c20d2d59cc83e23895360f7 languageName: node linkType: hard @@ -9097,8 +9105,8 @@ __metadata: linkType: hard "eslint-plugin-jest@npm:^26.1.0": - version: 26.7.0 - resolution: "eslint-plugin-jest@npm:26.7.0" + version: 26.9.0 + resolution: "eslint-plugin-jest@npm:26.9.0" dependencies: "@typescript-eslint/utils": ^5.10.0 peerDependencies: @@ -9109,7 +9117,7 @@ __metadata: optional: true jest: optional: true - checksum: 21dbeb3820a1640185e0bd3847f65feba98b479812bcaa3f353e725bd0538618b16544b4dfc74ac147b5150afed9cf28760d7aaad54158611403810776fe6353 + checksum: 6d5fd5c95368f1ca2640389aeb7ce703d6202493c3ec6bdedb4eaca37233710508b0c75829e727765a16fd27029a466d34202bc7f2811c752038ccbbce224400 languageName: node linkType: hard @@ -9209,12 +9217,13 @@ __metadata: linkType: hard "eslint@npm:^8.8.0": - version: 8.21.0 - resolution: "eslint@npm:8.21.0" + version: 8.24.0 + resolution: "eslint@npm:8.24.0" dependencies: - "@eslint/eslintrc": ^1.3.0 - "@humanwhocodes/config-array": ^0.10.4 + "@eslint/eslintrc": ^1.3.2 + "@humanwhocodes/config-array": ^0.10.5 "@humanwhocodes/gitignore-to-minimatch": ^1.0.2 + "@humanwhocodes/module-importer": ^1.0.1 ajv: ^6.10.0 chalk: ^4.0.0 cross-spawn: ^7.0.2 @@ -9224,13 +9233,12 @@ __metadata: eslint-scope: ^7.1.1 eslint-utils: ^3.0.0 eslint-visitor-keys: ^3.3.0 - espree: ^9.3.3 + espree: ^9.4.0 esquery: ^1.4.0 esutils: ^2.0.2 fast-deep-equal: ^3.1.3 file-entry-cache: ^6.0.1 find-up: ^5.0.0 - functional-red-black-tree: ^1.0.1 glob-parent: ^6.0.1 globals: ^13.15.0 globby: ^11.1.0 @@ -9239,6 +9247,7 @@ __metadata: import-fresh: ^3.0.0 imurmurhash: ^0.1.4 is-glob: ^4.0.0 + js-sdsl: ^4.1.4 js-yaml: ^4.1.0 json-stable-stringify-without-jsonify: ^1.0.1 levn: ^0.4.1 @@ -9250,21 +9259,20 @@ __metadata: strip-ansi: ^6.0.1 strip-json-comments: ^3.1.0 text-table: ^0.2.0 - v8-compile-cache: ^2.0.3 bin: eslint: bin/eslint.js - checksum: 1d39ddb08772ea230cb7d74f7f81f85b9d46965d3600725c7eb39a27bcdaf28cb2a780dacf6cfa1cfbf2da606b57a5e7e3ab373ab474cbcf0ba042076821f501 + checksum: ca293ce7116599b742d7ab4d43db469beec22f40dd272092d809498be3cff3a7c567769f9763bdf6799aac13dd53447b93a99629b7b54092783046eb57eaced6 languageName: node linkType: hard -"espree@npm:^9.3.2, espree@npm:^9.3.3": - version: 9.3.3 - resolution: "espree@npm:9.3.3" +"espree@npm:^9.4.0": + version: 9.4.0 + resolution: "espree@npm:9.4.0" dependencies: acorn: ^8.8.0 acorn-jsx: ^5.3.2 eslint-visitor-keys: ^3.3.0 - checksum: 33e8a36fc15d082e68672e322e22a53856b564d60aad8f291a667bfc21b2c900c42412d37dd3c7a0f18b9d0d8f8858dabe8776dbd4b4c2f72c5cf4d6afeabf65 + checksum: 2e3020dde67892d2ba3632413b44d0dc31d92c29ce72267d7ec24216a562f0a6494d3696e2fa39a3ec8c0e0088d773947ab2925fbb716801a11eb8dd313ac89c languageName: node linkType: hard @@ -10005,7 +10013,7 @@ __metadata: languageName: node linkType: hard -"find-up@npm:^2.0.0, find-up@npm:^2.1.0": +"find-up@npm:^2.0.0": version: 2.1.0 resolution: "find-up@npm:2.1.0" dependencies: @@ -10312,13 +10320,6 @@ __metadata: languageName: node linkType: hard -"functional-red-black-tree@npm:^1.0.1": - version: 1.0.1 - resolution: "functional-red-black-tree@npm:1.0.1" - checksum: ca6c170f37640e2d94297da8bb4bf27a1d12bea3e00e6a3e007fd7aa32e37e000f5772acf941b4e4f3cf1c95c3752033d0c509af157ad8f526e7f00723b9eb9f - languageName: node - linkType: hard - "functions-have-names@npm:^1.2.2": version: 1.2.3 resolution: "functions-have-names@npm:1.2.3" @@ -11700,7 +11701,7 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.1.0, is-core-module@npm:^2.5.0, is-core-module@npm:^2.8.1, is-core-module@npm:^2.9.0": +"is-core-module@npm:^2.1.0, is-core-module@npm:^2.10.0, is-core-module@npm:^2.5.0, is-core-module@npm:^2.8.1, is-core-module@npm:^2.9.0": version: 2.10.0 resolution: "is-core-module@npm:2.10.0" dependencies: @@ -13088,6 +13089,13 @@ __metadata: languageName: node linkType: hard +"js-sdsl@npm:^4.1.4": + version: 4.1.5 + resolution: "js-sdsl@npm:4.1.5" + checksum: 695f657ddc5be462b97cac4e8e60f37de28d628ee0e23016baecff0bb584a18dddb5caeac537a775030f180b5afd62133ac4481e7024c8d03a62d73e4da0713e + languageName: node + linkType: hard + "js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -19575,13 +19583,13 @@ __metadata: languageName: node linkType: hard -"synckit@npm:^0.8.1": - version: 0.8.1 - resolution: "synckit@npm:0.8.1" +"synckit@npm:^0.8.3": + version: 0.8.4 + resolution: "synckit@npm:0.8.4" dependencies: - "@pkgr/utils": ^2.3.0 + "@pkgr/utils": ^2.3.1 tslib: ^2.4.0 - checksum: 36a1b699996f3bb251c8f828364e101cf08b2a20225cb39df9d7c2186380554b8172374babfe10f03f4b52ab8c453c16447c3cbf61108221f2c58c446bf8425a + checksum: 83e054fe4494dab42114fc4ed36a11b85e18742d304ade3f40d3afb4ba4145d76183adba1f29e2c36e9a0a453b93a83e2387505f96a0efd901f562927a968c44 languageName: node linkType: hard @@ -20787,13 +20795,6 @@ __metadata: languageName: node linkType: hard -"v8-compile-cache@npm:^2.0.3": - version: 2.3.0 - resolution: "v8-compile-cache@npm:2.3.0" - checksum: adb0a271eaa2297f2f4c536acbfee872d0dd26ec2d76f66921aa7fc437319132773483344207bdbeee169225f4739016d8d2dbf0553913a52bb34da6d0334f8e - languageName: node - linkType: hard - "v8-to-istanbul@npm:^9.0.1": version: 9.0.1 resolution: "v8-to-istanbul@npm:9.0.1"