From 482f6fb3c43cfe6fb86ff636c5e293b9d0c78a58 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 14 Dec 2021 12:13:12 +0000 Subject: [PATCH 1/3] fix(deps): update eslint packages --- apps/editing-toolkit/package.json | 2 +- package.json | 12 +- packages/eslint-plugin-wpcalypso/package.json | 2 +- yarn.lock | 279 ++++++++++++++---- 4 files changed, 222 insertions(+), 73 deletions(-) diff --git a/apps/editing-toolkit/package.json b/apps/editing-toolkit/package.json index d257788cbed97f..ff4989ddc06a20 100644 --- a/apps/editing-toolkit/package.json +++ b/apps/editing-toolkit/package.json @@ -97,7 +97,7 @@ "@wordpress/url": "3.3.1", "classnames": "^2.3.1", "enzyme": "^3.11.0", - "eslint": "^7.32.0", + "eslint": "^8.4.1", "jest": "^27.3.1", "lodash": "^4.17.21", "moment": "^2.26.0", diff --git a/package.json b/package.json index 3a5da217d54914..f2e2f95afe477b 100644 --- a/package.json +++ b/package.json @@ -206,16 +206,16 @@ "css-loader": "^3.6.0", "debug": "^4.1.1", "doctrine": "^3.0.0", - "eslint": "^7.32.0", + "eslint": "^8.4.1", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.3", "eslint-plugin-inclusive-language": "^2.1.1", - "eslint-plugin-jest": "^24.7.0", - "eslint-plugin-jsdoc": "^36.1.1", + "eslint-plugin-jest": "^25.3.0", + "eslint-plugin-jsdoc": "^37.2.0", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-md": "^1.0.19", - "eslint-plugin-mocha": "^9.0.0", - "eslint-plugin-prettier": "^3.4.1", + "eslint-plugin-mocha": "^10.0.3", + "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.27.0", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-wpcalypso": "workspace:^", @@ -289,7 +289,7 @@ "@automattic/calypso-jest": "workspace:^", "@bartekbp/typescript-checkstyle": "^5.0.0", "bunyan": "^1.8.15", - "eslint-nibble": "^7.0.0", + "eslint-nibble": "^8.0.0", "husky": "^7.0.4" }, "resolutions": { diff --git a/packages/eslint-plugin-wpcalypso/package.json b/packages/eslint-plugin-wpcalypso/package.json index 582273ec1c6bc4..eb8908bf34ce26 100644 --- a/packages/eslint-plugin-wpcalypso/package.json +++ b/packages/eslint-plugin-wpcalypso/package.json @@ -25,7 +25,7 @@ "@babel/core": ">=7.16.5", "eslint": ">=7.32.0", "eslint-plugin-inclusive-language": "^2.1.1", - "eslint-plugin-jsdoc": "^36.1.1", + "eslint-plugin-jsdoc": "^37.2.0", "eslint-plugin-react-hooks": "^4.3.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 498c331d73db09..106f9e3b39a023 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1419,7 +1419,7 @@ __metadata: babel-jest: ^26.6.3 classnames: ^2.3.1 enzyme: ^3.11.0 - eslint: ^7.32.0 + eslint: ^8.4.1 jest: ^27.3.1 jest-teamcity: ^1.9.0 lodash: ^4.17.21 @@ -3580,6 +3580,17 @@ __metadata: languageName: node linkType: hard +"@es-joy/jsdoccomment@npm:0.13.0": + version: 0.13.0 + resolution: "@es-joy/jsdoccomment@npm:0.13.0" + dependencies: + comment-parser: 1.3.0 + esquery: ^1.4.0 + jsdoc-type-pratt-parser: 2.0.0 + checksum: 961d90762f3c2e37543d3159148c109e7b36f844bead0adfd2468e45e7b121fc56cf834a42ad1a8da755b9301c817f57329c8fd9b34337df654446dcccc84f96 + languageName: node + linkType: hard + "@eslint/eslintrc@npm:^0.4.3": version: 0.4.3 resolution: "@eslint/eslintrc@npm:0.4.3" @@ -3597,20 +3608,20 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^1.0.4": - version: 1.0.4 - resolution: "@eslint/eslintrc@npm:1.0.4" +"@eslint/eslintrc@npm:^1.0.5": + version: 1.0.5 + resolution: "@eslint/eslintrc@npm:1.0.5" dependencies: ajv: ^6.12.4 debug: ^4.3.2 - espree: ^9.0.0 + espree: ^9.2.0 globals: ^13.9.0 ignore: ^4.0.6 import-fresh: ^3.2.1 js-yaml: ^4.1.0 minimatch: ^3.0.4 strip-json-comments: ^3.1.1 - checksum: 3e1d5151dea296000bb5406ce10d341fb457fbc99fe717b0bb342298f7b5ae4151288964cac815ed06a507c947addd5aa7a13a034149ef0947672ff3b1812cda + checksum: eef6b80afab34acd0728295ceeccba80906265926109447ef9380d8eb44d3ea529e3b42f646c43b7fa468552f04f093bc9a0a76667b9952c1b61c94b96250da7 languageName: node linkType: hard @@ -3650,21 +3661,21 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/config-array@npm:^0.6.0": - version: 0.6.0 - resolution: "@humanwhocodes/config-array@npm:0.6.0" +"@humanwhocodes/config-array@npm:^0.9.2": + version: 0.9.2 + resolution: "@humanwhocodes/config-array@npm:0.9.2" dependencies: - "@humanwhocodes/object-schema": ^1.2.0 + "@humanwhocodes/object-schema": ^1.2.1 debug: ^4.1.1 minimatch: ^3.0.4 - checksum: 318607caa7c2c4fafb8d5c1126ae8d0a603164897199eb465efba28662212fbfb0af27b937e6fa196b095e35e0459e1ba7e4d7dfd585e6d5474d99204d4dffe8 + checksum: fa1656699b9e0dd27bad98205e327c95d94cec6f980de6f724c9c49ceb50a82c605242dfacbed95479c4b9d4a2c09bcc00514cf22cf3199d60a98b37b4f88892 languageName: node linkType: hard -"@humanwhocodes/object-schema@npm:^1.2.0": - version: 1.2.0 - resolution: "@humanwhocodes/object-schema@npm:1.2.0" - checksum: 2129b319392f3c72fbebe6a1b657039ef40b7a51b9ee532fac5bbd05421b456302a64c78778d8cb5384aa8fad7e5cf179ceee7608d81b3d6876e394c25cfe996 +"@humanwhocodes/object-schema@npm:^1.2.0, @humanwhocodes/object-schema@npm:^1.2.1": + version: 1.2.1 + resolution: "@humanwhocodes/object-schema@npm:1.2.1" + checksum: c3c35fdb70c04a569278351c75553e293ae339684ed75895edc79facc7276e351115786946658d78133130c0cca80e57e2203bc07f8fa7fe7980300e8deef7db languageName: node linkType: hard @@ -7302,6 +7313,22 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/experimental-utils@npm:^5.0.0": + version: 5.7.0 + resolution: "@typescript-eslint/experimental-utils@npm:5.7.0" + dependencies: + "@types/json-schema": ^7.0.9 + "@typescript-eslint/scope-manager": 5.7.0 + "@typescript-eslint/types": 5.7.0 + "@typescript-eslint/typescript-estree": 5.7.0 + eslint-scope: ^5.1.1 + eslint-utils: ^3.0.0 + peerDependencies: + eslint: "*" + checksum: 0ac4a31a4c4ff2eab52c302d6180b7c7e02836306799bf70f9126b2929e1c842a3df9306095a073d49dfef3251511301b45a4d8e4796193d32ad81432c7dde97 + languageName: node + linkType: hard + "@typescript-eslint/parser@npm:^4.31.0, @typescript-eslint/parser@npm:^4.33.0": version: 4.33.0 resolution: "@typescript-eslint/parser@npm:4.33.0" @@ -7329,6 +7356,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:5.7.0": + version: 5.7.0 + resolution: "@typescript-eslint/scope-manager@npm:5.7.0" + dependencies: + "@typescript-eslint/types": 5.7.0 + "@typescript-eslint/visitor-keys": 5.7.0 + checksum: 067781bc23e52e89cdacd2451f77b555da207aee9e8d07a25a9cc91db26c3d0ec41c392db78258bcdabcce206f86ae4cf691ab83d72fe0689c2583f6b97f90eb + languageName: node + linkType: hard + "@typescript-eslint/types@npm:4.33.0": version: 4.33.0 resolution: "@typescript-eslint/types@npm:4.33.0" @@ -7336,6 +7373,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:5.7.0": + version: 5.7.0 + resolution: "@typescript-eslint/types@npm:5.7.0" + checksum: fd2f9411f9b4e6e70bff71addf2056b2cc6e2f3b1d064682ca1f364dce8eccb00ee25f44a91c16762ce08aa13ae1af4ade6f71b00d19285fa1e87f57ca6e657e + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:4.33.0": version: 4.33.0 resolution: "@typescript-eslint/typescript-estree@npm:4.33.0" @@ -7354,6 +7398,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:5.7.0": + version: 5.7.0 + resolution: "@typescript-eslint/typescript-estree@npm:5.7.0" + dependencies: + "@typescript-eslint/types": 5.7.0 + "@typescript-eslint/visitor-keys": 5.7.0 + debug: ^4.3.2 + globby: ^11.0.4 + is-glob: ^4.0.3 + semver: ^7.3.5 + tsutils: ^3.21.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: cfbba62fdd558a856d95a574ef8e216a6c2ac0f95d1864d3cea826e551b2b8257ec8fbd5ffd6b0ab69091585ef75b64e0a32f3120d9575f75d8dca90c3424114 + languageName: node + linkType: hard + "@typescript-eslint/visitor-keys@npm:4.33.0": version: 4.33.0 resolution: "@typescript-eslint/visitor-keys@npm:4.33.0" @@ -7364,6 +7426,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:5.7.0": + version: 5.7.0 + resolution: "@typescript-eslint/visitor-keys@npm:5.7.0" + dependencies: + "@typescript-eslint/types": 5.7.0 + eslint-visitor-keys: ^3.0.0 + checksum: 9133c75b359591ce93973af143a69cfe642b71b8c32250bfe942b7fec09caece39e73774fbecade1d758ad24d9b3491c6b5a41384f77ff6d1f8baf899a775fb0 + languageName: node + linkType: hard + "@webassemblyjs/ast@npm:1.11.1": version: 1.11.1 resolution: "@webassemblyjs/ast@npm:1.11.1" @@ -9616,12 +9688,12 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.0.4, acorn@npm:^8.2.4, acorn@npm:^8.4.1, acorn@npm:^8.5.0": - version: 8.5.0 - resolution: "acorn@npm:8.5.0" +"acorn@npm:^8.0.4, acorn@npm:^8.2.4, acorn@npm:^8.4.1, acorn@npm:^8.6.0": + version: 8.6.0 + resolution: "acorn@npm:8.6.0" bin: acorn: bin/acorn - checksum: a0cd0009d215df0c5a6c69ea40a5e784114f1b89d5649d663264ccbb855d4c6b6da6936fed607078b7d681bd8d8f2e730dad25931edbdef709bc4b520c0caa80 + checksum: 88c40e80571d6d2e1680e69313cbc8bf275c9558f25d441ea5a00c2693e88f63d8cc3c536127abdc892e9b87f387aad16c1a1902b7935b5a523455e68dde6249 languageName: node linkType: hard @@ -13242,6 +13314,13 @@ __metadata: languageName: node linkType: hard +"comment-parser@npm:1.3.0": + version: 1.3.0 + resolution: "comment-parser@npm:1.3.0" + checksum: d7747a9527f600e9334e0d260ec9aae026bb2e3a2cfba931c55956b3b570704bccf3cc224ced7af57170c3e2bb083df07bd29bf743eb76596d48617f9b540f9c + languageName: node + linkType: hard + "comment-parser@npm:^0.7.4": version: 0.7.6 resolution: "comment-parser@npm:0.7.6" @@ -16420,16 +16499,16 @@ __metadata: languageName: node linkType: hard -"eslint-filtered-fix@npm:^0.1.1": - version: 0.1.1 - resolution: "eslint-filtered-fix@npm:0.1.1" +"eslint-filtered-fix@npm:^0.2.0": + version: 0.2.0 + resolution: "eslint-filtered-fix@npm:0.2.0" dependencies: - optionator: ^0.8.2 + optionator: ^0.9.1 peerDependencies: - eslint: ">=4.2.0" + eslint: ">=7.0.0" bin: - eslint-filtered-fix: ./bin/eslint-filtered-fix.js - checksum: 9b837f0b3d8e809d3f6697a61df3abf21518238ee57e0b7ba2a5cf1d1d079ba816a06f708263cdd43d9899fe6e607934694e0ae0fba054608036d6caa6693603 + eslint-filtered-fix: bin/eslint-filtered-fix.js + checksum: fd5b1adc6f7c3e039ef3195be3e4c0f0f4d9bb9b295a22b8ad6b3f7efeb4a24acd8c345a9c8a91b1729f20120aa53dae093575dda4a7cf7d07507ea5edc16afb languageName: node linkType: hard @@ -16467,22 +16546,22 @@ __metadata: languageName: node linkType: hard -"eslint-nibble@npm:^7.0.0": - version: 7.0.0 - resolution: "eslint-nibble@npm:7.0.0" +"eslint-nibble@npm:^8.0.0": + version: 8.0.0 + resolution: "eslint-nibble@npm:8.0.0" dependencies: "@ianvs/eslint-stats": ^2.0.0 chalk: ^4.1.1 - eslint-filtered-fix: ^0.1.1 + eslint-filtered-fix: ^0.2.0 eslint-formatter-friendly: ^7.0.0 eslint-summary: ^1.0.0 inquirer: 8.1.1 optionator: ^0.9.1 peerDependencies: - eslint: ">=4.0.0" + eslint: ">=7.0.0" bin: eslint-nibble: bin/eslint-nibble.js - checksum: 5b3227ec55f24296150a3e0d6d29155088911c5e1c460ffb65e9f96568abc828871fdf6b944d193e61f56b92810720b98fda2ab9bb3546bca68544e9bac50b70 + checksum: c01562a1119973a13e502fd21e76e4534a9d2b2ece58a7a58d8984f330549622237674f31d6e4e46699c99d0c1bd5f98b155616ee4a9b59525adc07274e471bc languageName: node linkType: hard @@ -16518,7 +16597,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-jest@npm:^24.1.3, eslint-plugin-jest@npm:^24.3.6, eslint-plugin-jest@npm:^24.7.0": +"eslint-plugin-jest@npm:^24.1.3, eslint-plugin-jest@npm:^24.3.6": version: 24.7.0 resolution: "eslint-plugin-jest@npm:24.7.0" dependencies: @@ -16533,7 +16612,24 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-jsdoc@npm:^36.0.8, eslint-plugin-jsdoc@npm:^36.1.1": +"eslint-plugin-jest@npm:^25.3.0": + version: 25.3.0 + resolution: "eslint-plugin-jest@npm:25.3.0" + dependencies: + "@typescript-eslint/experimental-utils": ^5.0.0 + peerDependencies: + "@typescript-eslint/eslint-plugin": ^4.0.0 || ^5.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + "@typescript-eslint/eslint-plugin": + optional: true + jest: + optional: true + checksum: 1655f4356cdc0a47408e513c470867063ca41f61e8f8cdc348369b12e581ee2ac0a6489c9dc5f283c002fa62861ffb6cb850a06a560a277066d46a8fbf933497 + languageName: node + linkType: hard + +"eslint-plugin-jsdoc@npm:^36.0.8": version: 36.1.1 resolution: "eslint-plugin-jsdoc@npm:36.1.1" dependencies: @@ -16552,6 +16648,25 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-jsdoc@npm:^37.2.0": + version: 37.2.0 + resolution: "eslint-plugin-jsdoc@npm:37.2.0" + dependencies: + "@es-joy/jsdoccomment": 0.13.0 + comment-parser: 1.3.0 + debug: ^4.3.3 + escape-string-regexp: ^4.0.0 + esquery: ^1.4.0 + jsdoc-type-pratt-parser: ^2.0.0 + regextras: ^0.8.0 + semver: ^7.3.5 + spdx-expression-parse: ^3.0.1 + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + checksum: c28d2dc5447c83b5872191235b74fc98b644592dc18a6124b0a2564372c4fea84d7cb4abf7264c98f78e889b007b492b12f3dd9691b24b798bd9d8010e8e7772 + languageName: node + linkType: hard + "eslint-plugin-jsx-a11y@npm:^6.4.1, eslint-plugin-jsx-a11y@npm:^6.5.1": version: 6.5.1 resolution: "eslint-plugin-jsx-a11y@npm:6.5.1" @@ -16600,6 +16715,18 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-mocha@npm:^10.0.3": + version: 10.0.3 + resolution: "eslint-plugin-mocha@npm:10.0.3" + dependencies: + eslint-utils: ^3.0.0 + ramda: ^0.27.1 + peerDependencies: + eslint: ">=7.0.0" + checksum: e677a7c095f9ecac35f211de4e38b164119e6b8b6ddfc8be56c45a01a3464cb4368826cb947261391bc54ef832086f5f869d900852d8234ef6c765f39535014a + languageName: node + linkType: hard + "eslint-plugin-mocha@npm:^9.0.0": version: 9.0.0 resolution: "eslint-plugin-mocha@npm:9.0.0" @@ -16612,7 +16739,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-prettier@npm:^3.3.0, eslint-plugin-prettier@npm:^3.4.1": +"eslint-plugin-prettier@npm:^3.3.0": version: 3.4.1 resolution: "eslint-plugin-prettier@npm:3.4.1" dependencies: @@ -16627,6 +16754,21 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-prettier@npm:^4.0.0": + version: 4.0.0 + resolution: "eslint-plugin-prettier@npm:4.0.0" + dependencies: + prettier-linter-helpers: ^1.0.0 + peerDependencies: + eslint: ">=7.28.0" + prettier: ">=2.0.0" + peerDependenciesMeta: + eslint-config-prettier: + optional: true + checksum: 90248c927ed3b6702d329ad42577880c968064792292fa7b580143c79e44fecfc68c3553cc34471baa8bc2b3ece50686f7b7b2243e0684f9cdd1b4f42316e576 + languageName: node + linkType: hard + "eslint-plugin-react-hooks@npm:^4.2.0, eslint-plugin-react-hooks@npm:^4.3.0": version: 4.3.0 resolution: "eslint-plugin-react-hooks@npm:4.3.0" @@ -16673,7 +16815,7 @@ __metadata: "@babel/core": ">=7.16.5" eslint: ">=7.32.0" eslint-plugin-inclusive-language: ^2.1.1 - eslint-plugin-jsdoc: ^36.1.1 + eslint-plugin-jsdoc: ^37.2.0 eslint-plugin-react-hooks: ^4.3.0 languageName: unknown linkType: soft @@ -16707,13 +16849,13 @@ __metadata: languageName: node linkType: hard -"eslint-scope@npm:^6.0.0": - version: 6.0.0 - resolution: "eslint-scope@npm:6.0.0" +"eslint-scope@npm:^7.1.0": + version: 7.1.0 + resolution: "eslint-scope@npm:7.1.0" dependencies: esrecurse: ^4.3.0 estraverse: ^5.2.0 - checksum: 50edb78549c710fffbb168f8a84baa14a0418b1343d6e3e22dde39ff38afee9138a044b39778ab72ae6f00b7bfd02ce6dbe6eadab7004139e3403e58c4751ad2 + checksum: 8dae17d7cba9a878716a7bbdc0d06474a329b9ff5bbec7c3801b64248e1ad53ea9941ac01db8c349c638ae966867c0f362d1aed533d1938d9c5a78c5d1135e87 languageName: node linkType: hard @@ -16770,19 +16912,19 @@ __metadata: languageName: node linkType: hard -"eslint-visitor-keys@npm:^3.0.0": +"eslint-visitor-keys@npm:^3.0.0, eslint-visitor-keys@npm:^3.1.0": version: 3.1.0 resolution: "eslint-visitor-keys@npm:3.1.0" checksum: ba23efd2a273cb5a0794ea76669cbe95892bed5d2e165e7744db6a81ede74f4239cf73d142016421d8297b72000486e4b41bba3078eccb9ef82ae0b7e06e9282 languageName: node linkType: hard -"eslint@npm:>=7.32.0": - version: 8.2.0 - resolution: "eslint@npm:8.2.0" +"eslint@npm:>=7.32.0, eslint@npm:^8.4.1": + version: 8.4.1 + resolution: "eslint@npm:8.4.1" dependencies: - "@eslint/eslintrc": ^1.0.4 - "@humanwhocodes/config-array": ^0.6.0 + "@eslint/eslintrc": ^1.0.5 + "@humanwhocodes/config-array": ^0.9.2 ajv: ^6.10.0 chalk: ^4.0.0 cross-spawn: ^7.0.2 @@ -16790,10 +16932,10 @@ __metadata: doctrine: ^3.0.0 enquirer: ^2.3.5 escape-string-regexp: ^4.0.0 - eslint-scope: ^6.0.0 + eslint-scope: ^7.1.0 eslint-utils: ^3.0.0 - eslint-visitor-keys: ^3.0.0 - espree: ^9.0.0 + eslint-visitor-keys: ^3.1.0 + espree: ^9.2.0 esquery: ^1.4.0 esutils: ^2.0.2 fast-deep-equal: ^3.1.3 @@ -16821,7 +16963,7 @@ __metadata: v8-compile-cache: ^2.0.3 bin: eslint: bin/eslint.js - checksum: 88e8f375bd49264fca9c868f1c4c09d8ab94351e2606bef8ae56380b10c4f91b8f494f34bea6bed98a35dde4992b663c0355a72c655053ad26d0422c800ac2f9 + checksum: 964a3e10e20c77cc9aef11ef950cffe42ae6825c1106101ec867218b52d9ae1dbf455955799b5e68f6d98650a880646d1951bdbd923c99af8907e910458b648a languageName: node linkType: hard @@ -16872,7 +17014,7 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^7.17.0, eslint@npm:^7.28.0, eslint@npm:^7.32.0": +"eslint@npm:^7.17.0, eslint@npm:^7.28.0": version: 7.32.0 resolution: "eslint@npm:7.32.0" dependencies: @@ -16951,14 +17093,14 @@ __metadata: languageName: node linkType: hard -"espree@npm:^9.0.0": - version: 9.0.0 - resolution: "espree@npm:9.0.0" +"espree@npm:^9.2.0": + version: 9.2.0 + resolution: "espree@npm:9.2.0" dependencies: - acorn: ^8.5.0 + acorn: ^8.6.0 acorn-jsx: ^5.3.1 - eslint-visitor-keys: ^3.0.0 - checksum: c882e3fa2c23d684742115309418aa95297dd1e399b6e2c02590aa9719e03f28a674946498b073bc416b58092b3b5c8be63f6564a8857af1c8658eaf551f0b5f + eslint-visitor-keys: ^3.1.0 + checksum: fa0acceb6bf151193b873379ba8ee3771c93ce3b656aeb9fe4a36adcf170e315925096e8addddd2d347ae6026ab18febc5892e314e6b109b61a9c3be75f88dc0 languageName: node linkType: hard @@ -19009,7 +19151,7 @@ fsevents@~2.1.2: languageName: node linkType: hard -"globby@npm:^11.0.0, globby@npm:^11.0.1, globby@npm:^11.0.2, globby@npm:^11.0.3": +"globby@npm:^11.0.0, globby@npm:^11.0.1, globby@npm:^11.0.2, globby@npm:^11.0.3, globby@npm:^11.0.4": version: 11.0.4 resolution: "globby@npm:11.0.4" dependencies: @@ -22986,6 +23128,13 @@ fsevents@~2.1.2: languageName: node linkType: hard +"jsdoc-type-pratt-parser@npm:2.0.0, jsdoc-type-pratt-parser@npm:^2.0.0": + version: 2.0.0 + resolution: "jsdoc-type-pratt-parser@npm:2.0.0" + checksum: 0f25908124194c35badbecab6fdc698b146a3f67c3b700c44648681d12976e2bfc6866bf6adb98ab3483662e9d04f52ea9b1a8b42dd5cdbd4024abaf690a31f1 + languageName: node + linkType: hard + "jsdom@npm:^11.5.1": version: 11.12.0 resolution: "jsdom@npm:11.12.0" @@ -26985,7 +27134,7 @@ fsevents@~2.1.2: languageName: node linkType: hard -"optionator@npm:^0.8.1, optionator@npm:^0.8.2, optionator@npm:^0.8.3": +"optionator@npm:^0.8.1, optionator@npm:^0.8.3": version: 0.8.3 resolution: "optionator@npm:0.8.3" dependencies: @@ -37589,17 +37738,17 @@ testarmada-magellan@11.0.10: css-loader: ^3.6.0 debug: ^4.1.1 doctrine: ^3.0.0 - eslint: ^7.32.0 + eslint: ^8.4.1 eslint-config-prettier: ^8.3.0 - eslint-nibble: ^7.0.0 + eslint-nibble: ^8.0.0 eslint-plugin-import: ^2.25.3 eslint-plugin-inclusive-language: ^2.1.1 - eslint-plugin-jest: ^24.7.0 - eslint-plugin-jsdoc: ^36.1.1 + eslint-plugin-jest: ^25.3.0 + eslint-plugin-jsdoc: ^37.2.0 eslint-plugin-jsx-a11y: ^6.5.1 eslint-plugin-md: ^1.0.19 - eslint-plugin-mocha: ^9.0.0 - eslint-plugin-prettier: ^3.4.1 + eslint-plugin-mocha: ^10.0.3 + eslint-plugin-prettier: ^4.0.0 eslint-plugin-react: ^7.27.0 eslint-plugin-react-hooks: ^4.3.0 eslint-plugin-wpcalypso: "workspace:^" From 294802326dcff9be178721ddfd9d9c88c435fb04 Mon Sep 17 00:00:00 2001 From: Sergio Cinos Date: Tue, 14 Dec 2021 15:19:15 +0100 Subject: [PATCH 2/3] Squashed commit of the following: commit 1a7d792d6a27470df91640a08d8ec6a2c4ef26e3 Author: Sergio Cinos Date: Tue Dec 14 12:57:42 2021 +0100 Dedupe packges commit 718907c10b049e8139809a8fb3e303e5468ffdcc Author: Sergio Cinos Date: Tue Dec 14 12:42:02 2021 +0100 Set explicit parser for .md.js files commit 724936a9e40015655c33f639a84c66b1fbf01c9d Author: Sergio Cinos Date: Tue Dec 14 12:34:33 2021 +0100 More eslint updates commit 7cd106d212e1a093864b78b28612f6b0ddc664f2 Author: Sergio Cinos Date: Tue Dec 14 12:31:50 2021 +0100 Update eslint-plugin-inclusive-language and eslint-plugin-react commit ab6942bf2e066bfbe7f87eb6582c1458f5412655 Author: Sergio Cinos Date: Tue Dec 14 12:11:17 2021 +0100 Ignore yarn warnings commit 1b3e83a25b424579474307737eb03ee47cbc3fdd Author: Sergio Cinos Date: Tue Dec 14 12:05:55 2021 +0100 Update `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` commit 94daa236f20c8a04a76cfec08bffa3013af27676 Author: Renovate Bot Date: Mon Dec 13 21:26:54 2021 +0000 fix(deps): update eslint packages --- .eslintrc.js | 1 + .yarnrc.yml | 7 ++++ package.json | 8 ++-- test/e2e/package.json | 4 +- yarn.lock | 91 ++++++++++++++++++++++++++++++------------- 5 files changed, 79 insertions(+), 32 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 188cc5b0aafe8e..820d775c6a5a53 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -169,6 +169,7 @@ module.exports = { 'jsdoc/require-param': 'off', 'jsdoc/check-param-names': 'off', '@typescript-eslint/no-empty-function': 'off', + 'prettier/prettier': [ 'error', { parser: 'babel' } ], }, }, ], diff --git a/.yarnrc.yml b/.yarnrc.yml index c7c51ef6fbb779..e5b206a8e9eb37 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -105,6 +105,13 @@ logFilters: - pattern: "wp-calypso@workspace:. provides react-dom (pff688) with version 17.0.2, which doesn't satisfy what @automattic/components and some of its descendants request" level: discard + # Depends on + # @wordpress/eslint-plugin: https://github.com/WordPress/gutenberg/issues/35576 + - pattern: "@automattic/wpcom-editing-toolkit@workspace:apps/editing-toolkit provides eslint (pcb2ba) with version 8.4.1, which doesn't satisfy what @wordpress/eslint-plugin and some of its descendants request" + level: discard + - pattern: "wp-calypso@workspace:. provides eslint (p3918c) with version 8.4.1, which doesn't satisfy what @wordpress/eslint-plugin and some of its descendants request" + level: discard + # `postinstall` script fails (https://github.com/pmndrs/react-spring/issues/1668) # Fixed in https://github.com/yarnpkg/berry/pull/3661, we need for a new yarn release. # Work around it by disabling scripts for this package (see `dependenciesMeta` in `package.json`). The workaround can be removed diff --git a/package.json b/package.json index f2e2f95afe477b..9614f3cd434f78 100644 --- a/package.json +++ b/package.json @@ -173,8 +173,8 @@ "@types/wordpress__data": "^4.6.10", "@types/wordpress__data-controls": "^2.2.0", "@types/wordpress__editor": "^10.0.1", - "@typescript-eslint/eslint-plugin": "^4.33.0", - "@typescript-eslint/parser": "^4.33.0", + "@typescript-eslint/eslint-plugin": "^5.7.0", + "@typescript-eslint/parser": "^5.7.0", "@wordpress/base-styles": "^4.0.4", "@wordpress/components": "^19.1.3", "@wordpress/data": "^6.1.4", @@ -209,14 +209,14 @@ "eslint": "^8.4.1", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.3", - "eslint-plugin-inclusive-language": "^2.1.1", + "eslint-plugin-inclusive-language": "^2.2.0", "eslint-plugin-jest": "^25.3.0", "eslint-plugin-jsdoc": "^37.2.0", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-md": "^1.0.19", "eslint-plugin-mocha": "^10.0.3", "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-react": "^7.27.0", + "eslint-plugin-react": "^7.27.1", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-wpcalypso": "workspace:^", "eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0", diff --git a/test/e2e/package.json b/test/e2e/package.json index b5e2b7f93b1ce2..57254ef930ba57 100644 --- a/test/e2e/package.json +++ b/test/e2e/package.json @@ -23,7 +23,7 @@ "@automattic/calypso-typescript-config": "workspace:^", "@babel/core": "^7.16.0", "enzyme": "^3.11.0", - "eslint-plugin-mocha": "^9.0.0", + "eslint-plugin-mocha": "^10.0.2", "postcss": "^8.3.11", "react-dom": "^17.0.2", "webpack": "^5.63.0" @@ -44,7 +44,7 @@ "chromedriver": "^89.0.0", "config": "^1.28.0", "eslint": "^7.28.0", - "eslint-plugin-jest": "^24.3.6", + "eslint-plugin-jest": "^25.3.0", "esm": "^3.2.25", "execa": "^5.0.0", "ffmpeg-static": "^2.4.0", diff --git a/yarn.lock b/yarn.lock index 106f9e3b39a023..781a428b15bdff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7275,7 +7275,7 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^4.31.0, @typescript-eslint/eslint-plugin@npm:^4.33.0": +"@typescript-eslint/eslint-plugin@npm:^4.31.0": version: 4.33.0 resolution: "@typescript-eslint/eslint-plugin@npm:4.33.0" dependencies: @@ -7297,6 +7297,28 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/eslint-plugin@npm:^5.7.0": + version: 5.7.0 + resolution: "@typescript-eslint/eslint-plugin@npm:5.7.0" + dependencies: + "@typescript-eslint/experimental-utils": 5.7.0 + "@typescript-eslint/scope-manager": 5.7.0 + debug: ^4.3.2 + functional-red-black-tree: ^1.0.1 + ignore: ^5.1.8 + regexpp: ^3.2.0 + semver: ^7.3.5 + tsutils: ^3.21.0 + peerDependencies: + "@typescript-eslint/parser": ^5.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 8259a3fb3f038c5058c5536271edb0630c0dc506c0a91d66172d54d43a8c08aab85696639950e576f9e0eba8b92d934744b6b589dc1f32deb657e43bcc2b9e6d + languageName: node + linkType: hard + "@typescript-eslint/experimental-utils@npm:4.33.0, @typescript-eslint/experimental-utils@npm:^4.0.1": version: 4.33.0 resolution: "@typescript-eslint/experimental-utils@npm:4.33.0" @@ -7313,7 +7335,7 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/experimental-utils@npm:^5.0.0": +"@typescript-eslint/experimental-utils@npm:5.7.0, @typescript-eslint/experimental-utils@npm:^5.0.0": version: 5.7.0 resolution: "@typescript-eslint/experimental-utils@npm:5.7.0" dependencies: @@ -7329,7 +7351,7 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/parser@npm:^4.31.0, @typescript-eslint/parser@npm:^4.33.0": +"@typescript-eslint/parser@npm:^4.31.0": version: 4.33.0 resolution: "@typescript-eslint/parser@npm:4.33.0" dependencies: @@ -7346,6 +7368,23 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/parser@npm:^5.7.0": + version: 5.7.0 + resolution: "@typescript-eslint/parser@npm:5.7.0" + dependencies: + "@typescript-eslint/scope-manager": 5.7.0 + "@typescript-eslint/types": 5.7.0 + "@typescript-eslint/typescript-estree": 5.7.0 + debug: ^4.3.2 + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 4b70b08896ab7955e59c1e85fdb7b7b70a3e947b04e5af3d4b3dd7c3473492541eaacf7b0004572f2ad74bde37078454becd71e4fdea91dec158308f05fa3056 + languageName: node + linkType: hard + "@typescript-eslint/scope-manager@npm:4.33.0": version: 4.33.0 resolution: "@typescript-eslint/scope-manager@npm:4.33.0" @@ -16588,16 +16627,16 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-inclusive-language@npm:^2.1.1": - version: 2.1.1 - resolution: "eslint-plugin-inclusive-language@npm:2.1.1" +"eslint-plugin-inclusive-language@npm:^2.2.0": + version: 2.2.0 + resolution: "eslint-plugin-inclusive-language@npm:2.2.0" dependencies: humps: ^2.0.1 - checksum: fc759f94b9fbbbaf592f39027ce09002737f0c6ebc59df2b8449dd8778e7c25e97894c4ff6b90d7785326b792189397f6f5531fda535ebaa20dfef0ae5ee342c + checksum: c491a16e2a958ffad0568045b1dac341a4304ecf5dd16351c33b32e19aef641d039da0be92f3e3a75ef57618e4903a514f368285ee76c0bdd160417a0f95171c languageName: node linkType: hard -"eslint-plugin-jest@npm:^24.1.3, eslint-plugin-jest@npm:^24.3.6": +"eslint-plugin-jest@npm:^24.1.3": version: 24.7.0 resolution: "eslint-plugin-jest@npm:24.7.0" dependencies: @@ -16715,27 +16754,27 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-mocha@npm:^10.0.3": - version: 10.0.3 - resolution: "eslint-plugin-mocha@npm:10.0.3" +"eslint-plugin-mocha@npm:^10.0.2": + version: 10.0.2 + resolution: "eslint-plugin-mocha@npm:10.0.2" dependencies: eslint-utils: ^3.0.0 ramda: ^0.27.1 peerDependencies: eslint: ">=7.0.0" - checksum: e677a7c095f9ecac35f211de4e38b164119e6b8b6ddfc8be56c45a01a3464cb4368826cb947261391bc54ef832086f5f869d900852d8234ef6c765f39535014a + checksum: 77884930d89338b8cb66e5c7b4d950de5606f8aa87f8bf2ce93762a33b1e5b01e328081c8b193038a92e0e677b7f60687ef839087ee365a9049db11ef3e979a5 languageName: node linkType: hard -"eslint-plugin-mocha@npm:^9.0.0": - version: 9.0.0 - resolution: "eslint-plugin-mocha@npm:9.0.0" +"eslint-plugin-mocha@npm:^10.0.3": + version: 10.0.3 + resolution: "eslint-plugin-mocha@npm:10.0.3" dependencies: eslint-utils: ^3.0.0 ramda: ^0.27.1 peerDependencies: eslint: ">=7.0.0" - checksum: f9cb79cc97888c8933491de384c81d73939cf96cc862e731a80f67fc1c7e14bd86442606f02c0cbefe602f132808b59383db4f1bea5cea2f2675469a27e9ca88 + checksum: e677a7c095f9ecac35f211de4e38b164119e6b8b6ddfc8be56c45a01a3464cb4368826cb947261391bc54ef832086f5f869d900852d8234ef6c765f39535014a languageName: node linkType: hard @@ -16778,9 +16817,9 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-react@npm:^7.22.0, eslint-plugin-react@npm:^7.27.0": - version: 7.27.0 - resolution: "eslint-plugin-react@npm:7.27.0" +"eslint-plugin-react@npm:^7.22.0, eslint-plugin-react@npm:^7.27.1": + version: 7.27.1 + resolution: "eslint-plugin-react@npm:7.27.1" dependencies: array-includes: ^3.1.4 array.prototype.flatmap: ^1.2.5 @@ -16798,7 +16837,7 @@ __metadata: string.prototype.matchall: ^4.0.6 peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - checksum: 6d75ab045a9eb1f64f81b7ad3dadce21b9dc7a3e637a84d22ff3b235a9299d8f8693054ea8a4eceb737b4021fd0cb04c0923f83daa5d664c610b44b04008bdb5 + checksum: 7ee0cf33034fb5927f169ec45057dbc8b2c528682fe6c33716bf4b790e10fe2a0cc50bb91c4b78e7abf6e04536e44ff2e67c70b3bacc936defdbb05fb74e3a06 languageName: node linkType: hard @@ -37704,8 +37743,8 @@ testarmada-magellan@11.0.10: "@types/wordpress__data": ^4.6.10 "@types/wordpress__data-controls": ^2.2.0 "@types/wordpress__editor": ^10.0.1 - "@typescript-eslint/eslint-plugin": ^4.33.0 - "@typescript-eslint/parser": ^4.33.0 + "@typescript-eslint/eslint-plugin": ^5.7.0 + "@typescript-eslint/parser": ^5.7.0 "@wordpress/base-styles": ^4.0.4 "@wordpress/components": ^19.1.3 "@wordpress/data": ^6.1.4 @@ -37742,14 +37781,14 @@ testarmada-magellan@11.0.10: eslint-config-prettier: ^8.3.0 eslint-nibble: ^8.0.0 eslint-plugin-import: ^2.25.3 - eslint-plugin-inclusive-language: ^2.1.1 + eslint-plugin-inclusive-language: ^2.2.0 eslint-plugin-jest: ^25.3.0 eslint-plugin-jsdoc: ^37.2.0 eslint-plugin-jsx-a11y: ^6.5.1 eslint-plugin-md: ^1.0.19 eslint-plugin-mocha: ^10.0.3 eslint-plugin-prettier: ^4.0.0 - eslint-plugin-react: ^7.27.0 + eslint-plugin-react: ^7.27.1 eslint-plugin-react-hooks: ^4.3.0 eslint-plugin-wpcalypso: "workspace:^" eslint-plugin-you-dont-need-lodash-underscore: ^6.12.0 @@ -37845,8 +37884,8 @@ testarmada-magellan@11.0.10: config: ^1.28.0 enzyme: ^3.11.0 eslint: ^7.28.0 - eslint-plugin-jest: ^24.3.6 - eslint-plugin-mocha: ^9.0.0 + eslint-plugin-jest: ^25.3.0 + eslint-plugin-mocha: ^10.0.2 esm: ^3.2.25 execa: ^5.0.0 ffmpeg-static: ^2.4.0 From f59c437be0fb4518ebec1ca8222e6ad0c4793909 Mon Sep 17 00:00:00 2001 From: Sergio Cinos Date: Tue, 14 Dec 2021 15:30:33 +0100 Subject: [PATCH 3/3] Dedupe --- yarn.lock | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/yarn.lock b/yarn.lock index 781a428b15bdff..68f572f2d1585f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16754,19 +16754,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-mocha@npm:^10.0.2": - version: 10.0.2 - resolution: "eslint-plugin-mocha@npm:10.0.2" - dependencies: - eslint-utils: ^3.0.0 - ramda: ^0.27.1 - peerDependencies: - eslint: ">=7.0.0" - checksum: 77884930d89338b8cb66e5c7b4d950de5606f8aa87f8bf2ce93762a33b1e5b01e328081c8b193038a92e0e677b7f60687ef839087ee365a9049db11ef3e979a5 - languageName: node - linkType: hard - -"eslint-plugin-mocha@npm:^10.0.3": +"eslint-plugin-mocha@npm:^10.0.2, eslint-plugin-mocha@npm:^10.0.3": version: 10.0.3 resolution: "eslint-plugin-mocha@npm:10.0.3" dependencies: