From 2ed3981397e09098b28c8ddda0603f23eb5cbf24 Mon Sep 17 00:00:00 2001 From: Peter Somogyvari Date: Wed, 4 Oct 2023 15:23:03 -0700 Subject: [PATCH] build(lint): fix linter - doesn't work after last prettier upgrade to v3.0.0 I ran `yarn up eslint-plugin-prettier --exact` to produce the diff of this commit. I also ran `yarn lint` to verify that the linter works. [skip ci] Fixes #2727 Signed-off-by: Peter Somogyvari --- .../package.json | 2 +- .../cactus-example-tcs-huawei/package.json | 2 +- package.json | 2 +- .../core/drivers/fabric-driver/package.json | 2 +- .../iin-agent/package.json | 2 +- weaver/samples/fabric/fabric-cli/package.json | 2 +- weaver/sdks/besu/node/package.json | 2 +- .../interoperation-node-sdk/package.json | 2 +- yarn.lock | 224 +++++++++++++++--- 9 files changed, 193 insertions(+), 47 deletions(-) diff --git a/examples/cactus-example-electricity-trade/package.json b/examples/cactus-example-electricity-trade/package.json index 36097d685dc..c103b70cb9b 100644 --- a/examples/cactus-example-electricity-trade/package.json +++ b/examples/cactus-example-electricity-trade/package.json @@ -49,7 +49,7 @@ "@typescript-eslint/parser": "4.33.0", "eslint": "7.32.0", "eslint-config-prettier": "8.10.0", - "eslint-plugin-prettier": "4.0.0", + "eslint-plugin-prettier": "5.0.0", "prettier": "2.8.8" } } diff --git a/examples/cactus-example-tcs-huawei/package.json b/examples/cactus-example-tcs-huawei/package.json index c29f8bbcf06..ecc33659aab 100644 --- a/examples/cactus-example-tcs-huawei/package.json +++ b/examples/cactus-example-tcs-huawei/package.json @@ -44,7 +44,7 @@ "@typescript-eslint/parser": "4.33.0", "eslint": "7.32.0", "eslint-config-prettier": "8.10.0", - "eslint-plugin-prettier": "4.0.0", + "eslint-plugin-prettier": "5.0.0", "prettier": "2.8.8" } } diff --git a/package.json b/package.json index 6c31a920232..ee486e55281 100644 --- a/package.json +++ b/package.json @@ -119,7 +119,7 @@ "eslint-config-standard": "16.0.3", "eslint-plugin-import": "2.28.1", "eslint-plugin-node": "11.1.0", - "eslint-plugin-prettier": "3.4.1", + "eslint-plugin-prettier": "5.0.0", "eslint-plugin-promise": "5.2.0", "eslint-plugin-standard": "5.0.0", "fast-safe-stringify": "2.1.1", diff --git a/weaver/core/drivers/fabric-driver/package.json b/weaver/core/drivers/fabric-driver/package.json index dfafc2b4aff..c1566c22235 100644 --- a/weaver/core/drivers/fabric-driver/package.json +++ b/weaver/core/drivers/fabric-driver/package.json @@ -27,7 +27,7 @@ "@typescript-eslint/parser": "5.62.0", "dotenv": "8.6.0", "eslint-config-prettier": "8.9.0", - "eslint-plugin-prettier": "3.4.1", + "eslint-plugin-prettier": "5.0.0", "fabric-ca-client": "2.2.18", "fabric-network": "2.2.18", "level": "8.0.0", diff --git a/weaver/core/identity-management/iin-agent/package.json b/weaver/core/identity-management/iin-agent/package.json index cdd18f35820..fb6e32f0342 100644 --- a/weaver/core/identity-management/iin-agent/package.json +++ b/weaver/core/identity-management/iin-agent/package.json @@ -27,7 +27,7 @@ "@typescript-eslint/parser": "3.10.1", "dotenv": "8.6.0", "eslint-config-prettier": "6.15.0", - "eslint-plugin-prettier": "3.4.1", + "eslint-plugin-prettier": "5.0.0", "fabric-ca-client": "2.2.18", "fabric-common": "2.2.18", "fabric-network": "2.2.18" diff --git a/weaver/samples/fabric/fabric-cli/package.json b/weaver/samples/fabric/fabric-cli/package.json index 5fbffb4eb1d..f0edca8fcb4 100644 --- a/weaver/samples/fabric/fabric-cli/package.json +++ b/weaver/samples/fabric/fabric-cli/package.json @@ -68,7 +68,7 @@ "@typescript-eslint/parser": "4.33.0", "eslint": "7.32.0", "eslint-config-prettier": "8.10.0", - "eslint-plugin-prettier": "3.4.1", + "eslint-plugin-prettier": "5.0.0", "google-protobuf": "3.21.2", "jest": "29.6.2", "pkg": "4.5.1", diff --git a/weaver/sdks/besu/node/package.json b/weaver/sdks/besu/node/package.json index 1d87dd3ea2f..ffaa9f050df 100644 --- a/weaver/sdks/besu/node/package.json +++ b/weaver/sdks/besu/node/package.json @@ -28,7 +28,7 @@ "eslint-config-airbnb-base": "14.2.1", "eslint-config-prettier": "6.15.0", "eslint-plugin-import": "2.28.1", - "eslint-plugin-prettier": "3.4.1", + "eslint-plugin-prettier": "5.0.0", "mocha": "5.2.0", "nyc": "12.0.2", "prettier": "2.8.8", diff --git a/weaver/sdks/fabric/interoperation-node-sdk/package.json b/weaver/sdks/fabric/interoperation-node-sdk/package.json index 3033d0bcbce..f0f5b773ae2 100644 --- a/weaver/sdks/fabric/interoperation-node-sdk/package.json +++ b/weaver/sdks/fabric/interoperation-node-sdk/package.json @@ -63,7 +63,7 @@ "eslint-config-airbnb-base": "14.2.1", "eslint-config-prettier": "8.10.0", "eslint-plugin-import": "2.28.1", - "eslint-plugin-prettier": "3.4.1", + "eslint-plugin-prettier": "5.0.0", "mocha": "5.2.0", "nyc": "12.0.2", "prettier": "2.8.8", diff --git a/yarn.lock b/yarn.lock index 24ee6cb6f45..6659fc5228e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5343,7 +5343,7 @@ __metadata: autoprefixer: 10.4.8 chart.js: 3.9.1 moment: 2.29.4 - postcss: 8.4.16 + postcss: 8.4.31 solid-apexcharts: 0.1.6 solid-icons: 1.0.4 solid-js: 1.5.7 @@ -5423,7 +5423,7 @@ __metadata: "@typescript-eslint/parser": 5.62.0 dotenv: 8.6.0 eslint-config-prettier: 8.9.0 - eslint-plugin-prettier: 3.4.1 + eslint-plugin-prettier: 5.0.0 fabric-ca-client: 2.2.18 fabric-network: 2.2.18 level: 8.0.0 @@ -5455,7 +5455,7 @@ __metadata: elliptic: 6.5.4 eslint: 7.32.0 eslint-config-prettier: 8.10.0 - eslint-plugin-prettier: 3.4.1 + eslint-plugin-prettier: 5.0.0 express: 4.18.2 fabric-ca-client: 2.2.18 fabric-network: 2.2.18 @@ -5494,7 +5494,7 @@ __metadata: chai-as-promised: 7.1.1 dotenv: 8.6.0 eslint-config-prettier: 6.15.0 - eslint-plugin-prettier: 3.4.1 + eslint-plugin-prettier: 5.0.0 fabric-ca-client: 2.2.18 fabric-common: 2.2.18 fabric-network: 2.2.18 @@ -5539,7 +5539,7 @@ __metadata: eslint-config-airbnb-base: 14.2.1 eslint-config-prettier: 6.15.0 eslint-plugin-import: 2.28.1 - eslint-plugin-prettier: 3.4.1 + eslint-plugin-prettier: 5.0.0 log4js: 6.9.1 mocha: 5.2.0 nyc: 12.0.2 @@ -5572,7 +5572,7 @@ __metadata: eslint-config-airbnb-base: 14.2.1 eslint-config-prettier: 8.10.0 eslint-plugin-import: 2.28.1 - eslint-plugin-prettier: 3.4.1 + eslint-plugin-prettier: 5.0.0 fabric-common: 2.2.18 fabric-network: 2.2.18 fabric-protos: 2.2.18 @@ -6004,7 +6004,7 @@ __metadata: escape-html: 1.0.3 eslint: 7.32.0 eslint-config-prettier: 8.10.0 - eslint-plugin-prettier: 4.0.0 + eslint-plugin-prettier: 5.0.0 ethereumjs-common: 1.5.2 ethereumjs-tx: 2.1.2 express: 4.16.4 @@ -6143,7 +6143,7 @@ __metadata: escape-html: 1.0.3 eslint: 7.32.0 eslint-config-prettier: 8.10.0 - eslint-plugin-prettier: 4.0.0 + eslint-plugin-prettier: 5.0.0 ethereumjs-common: 1.5.2 ethereumjs-tx: 2.1.2 express: 4.16.4 @@ -7209,7 +7209,7 @@ __metadata: eslint-config-standard: 16.0.3 eslint-plugin-import: 2.28.1 eslint-plugin-node: 11.1.0 - eslint-plugin-prettier: 3.4.1 + eslint-plugin-prettier: 5.0.0 eslint-plugin-promise: 5.2.0 eslint-plugin-standard: 5.0.0 fast-safe-stringify: 2.1.1 @@ -9220,6 +9220,20 @@ __metadata: languageName: node linkType: hard +"@pkgr/utils@npm:^2.3.1": + version: 2.4.2 + resolution: "@pkgr/utils@npm:2.4.2" + dependencies: + cross-spawn: ^7.0.3 + fast-glob: ^3.3.0 + is-glob: ^4.0.3 + open: ^9.1.0 + picocolors: ^1.0.0 + tslib: ^2.6.0 + checksum: 24e04c121269317d259614cd32beea3af38277151c4002df5883c4be920b8e3490bb897748e844f9d46bf68230f86dabd4e8f093773130e7e60529a769a132fc + languageName: node + linkType: hard + "@polka/url@npm:^1.0.0-next.20": version: 1.0.0-next.21 resolution: "@polka/url@npm:1.0.0-next.21" @@ -14385,6 +14399,13 @@ __metadata: languageName: node linkType: hard +"big-integer@npm:^1.6.44": + version: 1.6.51 + resolution: "big-integer@npm:1.6.51" + checksum: 3d444173d1b2e20747e2c175568bedeebd8315b0637ea95d75fd27830d3b8e8ba36c6af40374f36bdaea7b5de376dcada1b07587cb2a79a928fccdb6e6e3c518 + languageName: node + linkType: hard + "big.js@npm:^3.1.3": version: 3.2.0 resolution: "big.js@npm:3.2.0" @@ -14748,6 +14769,15 @@ __metadata: languageName: node linkType: hard +"bplist-parser@npm:^0.2.0": + version: 0.2.0 + resolution: "bplist-parser@npm:0.2.0" + dependencies: + big-integer: ^1.6.44 + checksum: d5339dd16afc51de6c88f88f58a45b72ed6a06aa31f5557d09877575f220b7c1d3fbe375da0b62e6a10d4b8ed80523567e351f24014f5bc886ad523758142cdd + languageName: node + linkType: hard + "brace-expansion@npm:^1.1.7": version: 1.1.11 resolution: "brace-expansion@npm:1.1.11" @@ -15211,6 +15241,15 @@ __metadata: languageName: node linkType: hard +"bundle-name@npm:^3.0.0": + version: 3.0.0 + resolution: "bundle-name@npm:3.0.0" + dependencies: + run-applescript: ^5.0.0 + checksum: edf2b1fbe6096ed32e7566947ace2ea937ee427391744d7510a2880c4b9a5b3543d3f6c551236a29e5c87d3195f8e2912516290e638c15bcbede7b37cc375615 + languageName: node + linkType: hard + "busboy@npm:^1.0.0, busboy@npm:^1.6.0": version: 1.6.0 resolution: "busboy@npm:1.6.0" @@ -18128,6 +18167,28 @@ __metadata: languageName: node linkType: hard +"default-browser-id@npm:^3.0.0": + version: 3.0.0 + resolution: "default-browser-id@npm:3.0.0" + dependencies: + bplist-parser: ^0.2.0 + untildify: ^4.0.0 + checksum: 279c7ad492542e5556336b6c254a4eaf31b2c63a5433265655ae6e47301197b6cfb15c595a6fdc6463b2ff8e1a1a1ed3cba56038a60e1527ba4ab1628c6b9941 + languageName: node + linkType: hard + +"default-browser@npm:^4.0.0": + version: 4.0.0 + resolution: "default-browser@npm:4.0.0" + dependencies: + bundle-name: ^3.0.0 + default-browser-id: ^3.0.0 + execa: ^7.1.1 + titleize: ^3.0.0 + checksum: 40c5af984799042b140300be5639c9742599bda76dc9eba5ac9ad5943c83dd36cebc4471eafcfddf8e0ec817166d5ba89d56f08e66a126c7c7908a179cead1a7 + languageName: node + linkType: hard + "default-gateway@npm:^6.0.0, default-gateway@npm:^6.0.3": version: 6.0.3 resolution: "default-gateway@npm:6.0.3" @@ -18232,6 +18293,13 @@ __metadata: languageName: node linkType: hard +"define-lazy-prop@npm:^3.0.0": + version: 3.0.0 + resolution: "define-lazy-prop@npm:3.0.0" + checksum: 54884f94caac0791bf6395a3ec530ce901cf71c47b0196b8754f3fd17edb6c0e80149c1214429d851873bb0d689dbe08dcedbb2306dc45c8534a5934723851b6 + languageName: node + linkType: hard + "define-properties@npm:^1.1.3": version: 1.1.3 resolution: "define-properties@npm:1.1.3" @@ -20178,33 +20246,22 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-prettier@npm:3.4.1": - version: 3.4.1 - resolution: "eslint-plugin-prettier@npm:3.4.1" +"eslint-plugin-prettier@npm:5.0.0": + version: 5.0.0 + resolution: "eslint-plugin-prettier@npm:5.0.0" dependencies: prettier-linter-helpers: ^1.0.0 + synckit: ^0.8.5 peerDependencies: - eslint: ">=5.0.0" - prettier: ">=1.13.0" + "@types/eslint": ">=8.0.0" + eslint: ">=8.0.0" + prettier: ">=3.0.0" peerDependenciesMeta: - eslint-config-prettier: + "@types/eslint": optional: true - checksum: fa6a89f0d7cba1cc87064352f5a4a68dc3739448dd279bec2bced1bfa3b704467e603d13b69dcec853f8fa30b286b8b715912898e9da776e1b016cf0ee48bd99 - 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: 03d69177a3c21fa2229c7e427ce604429f0b20ab7f411e2e824912f572a207c7f5a41fd1f0a95b9b8afe121e291c1b1f1dc1d44c7aad4b0837487f9c19f5210d + checksum: 84e88744b9050f2d5ef31b94e85294dda16f3a53c2449f9d33eac8ae6264889b459bf35a68e438fb6b329c2a1d6491aac4bfa00d86317e7009de3dad0311bec6 languageName: node linkType: hard @@ -21109,6 +21166,23 @@ __metadata: languageName: node linkType: hard +"execa@npm:^7.1.1": + version: 7.2.0 + resolution: "execa@npm:7.2.0" + dependencies: + cross-spawn: ^7.0.3 + get-stream: ^6.0.1 + human-signals: ^4.3.0 + is-stream: ^3.0.0 + merge-stream: ^2.0.0 + npm-run-path: ^5.1.0 + onetime: ^6.0.0 + signal-exit: ^3.0.7 + strip-final-newline: ^3.0.0 + checksum: 14fd17ba0ca8c87b277584d93b1d9fc24f2a65e5152b31d5eb159a3b814854283eaae5f51efa9525e304447e2f757c691877f7adff8fde5746aae67eb1edd1cc + languageName: node + linkType: hard + "execa@npm:^8.0.1": version: 8.0.1 resolution: "execa@npm:8.0.1" @@ -24753,6 +24827,13 @@ __metadata: languageName: node linkType: hard +"human-signals@npm:^4.3.0": + version: 4.3.1 + resolution: "human-signals@npm:4.3.1" + checksum: 6f12958df3f21b6fdaf02d90896c271df00636a31e2bbea05bddf817a35c66b38a6fdac5863e2df85bd52f34958997f1f50350ff97249e1dff8452865d5235d1 + languageName: node + linkType: hard + "human-signals@npm:^5.0.0": version: 5.0.0 resolution: "human-signals@npm:5.0.0" @@ -25806,6 +25887,15 @@ __metadata: languageName: node linkType: hard +"is-docker@npm:^3.0.0": + version: 3.0.0 + resolution: "is-docker@npm:3.0.0" + bin: + is-docker: cli.js + checksum: b698118f04feb7eaf3338922bd79cba064ea54a1c3db6ec8c0c8d8ee7613e7e5854d802d3ef646812a8a3ace81182a085dfa0a71cc68b06f3fa794b9783b3c90 + languageName: node + linkType: hard + "is-dotfile@npm:^1.0.0": version: 1.0.3 resolution: "is-dotfile@npm:1.0.3" @@ -25937,6 +26027,17 @@ __metadata: languageName: node linkType: hard +"is-inside-container@npm:^1.0.0": + version: 1.0.0 + resolution: "is-inside-container@npm:1.0.0" + dependencies: + is-docker: ^3.0.0 + bin: + is-inside-container: cli.js + checksum: c50b75a2ab66ab3e8b92b3bc534e1ea72ca25766832c0623ac22d134116a98bcf012197d1caabe1d1c4bd5f84363d4aa5c36bb4b585fbcaf57be172cd10a1a03 + languageName: node + linkType: hard + "is-installed-globally@npm:^0.4.0": version: 0.4.0 resolution: "is-installed-globally@npm:0.4.0" @@ -32710,6 +32811,18 @@ __metadata: languageName: node linkType: hard +"open@npm:^9.1.0": + version: 9.1.0 + resolution: "open@npm:9.1.0" + dependencies: + default-browser: ^4.0.0 + define-lazy-prop: ^3.0.0 + is-inside-container: ^1.0.0 + is-wsl: ^2.2.0 + checksum: 3993c0f61d51fed8ac290e99c9c3cf45d3b6cfb3e2aa2b74cafd312c3486c22fd81df16ac8f3ab91dd8a4e3e729a16fc2480cfc406c4833416cf908acf1ae7c9 + languageName: node + linkType: hard + "openapi-types@npm:12.1.3": version: 12.1.3 resolution: "openapi-types@npm:12.1.3" @@ -34257,25 +34370,25 @@ __metadata: languageName: node linkType: hard -"postcss@npm:8.4.16": - version: 8.4.16 - resolution: "postcss@npm:8.4.16" +"postcss@npm:8.4.27": + version: 8.4.27 + resolution: "postcss@npm:8.4.27" dependencies: - nanoid: ^3.3.4 + nanoid: ^3.3.6 picocolors: ^1.0.0 source-map-js: ^1.0.2 - checksum: 10eee25efd77868036403858577da0cefaf2e0905feeaba5770d5438ccdddba3d01cba8063e96b8aac4c6daa0ed413dd5ae0554a433a3c4db38df1d134cffc1f + checksum: 1cdd0c298849df6cd65f7e646a3ba36870a37b65f55fd59d1a165539c263e9b4872a402bf4ed1ca1bc31f58b68b2835545e33ea1a23b161a1f8aa6d5ded81e78 languageName: node linkType: hard -"postcss@npm:8.4.27": - version: 8.4.27 - resolution: "postcss@npm:8.4.27" +"postcss@npm:8.4.31": + version: 8.4.31 + resolution: "postcss@npm:8.4.31" dependencies: nanoid: ^3.3.6 picocolors: ^1.0.0 source-map-js: ^1.0.2 - checksum: 1cdd0c298849df6cd65f7e646a3ba36870a37b65f55fd59d1a165539c263e9b4872a402bf4ed1ca1bc31f58b68b2835545e33ea1a23b161a1f8aa6d5ded81e78 + checksum: 1d8611341b073143ad90486fcdfeab49edd243377b1f51834dc4f6d028e82ce5190e4f11bb2633276864503654fb7cab28e67abdc0fbf9d1f88cad4a0ff0beea languageName: node linkType: hard @@ -36778,6 +36891,15 @@ __metadata: languageName: node linkType: hard +"run-applescript@npm:^5.0.0": + version: 5.0.0 + resolution: "run-applescript@npm:5.0.0" + dependencies: + execa: ^5.0.0 + checksum: d00c2dbfa5b2d774de7451194b8b125f40f65fc183de7d9dcae97f57f59433586d3c39b9001e111c38bfa24c3436c99df1bb4066a2a0c90d39a8c4cd6889af77 + languageName: node + linkType: hard + "run-async@npm:^0.1.0": version: 0.1.0 resolution: "run-async@npm:0.1.0" @@ -39637,6 +39759,16 @@ __metadata: languageName: node linkType: hard +"synckit@npm:^0.8.5": + version: 0.8.5 + resolution: "synckit@npm:0.8.5" + dependencies: + "@pkgr/utils": ^2.3.1 + tslib: ^2.5.0 + checksum: 8a9560e5d8f3d94dc3cf5f7b9c83490ffa30d320093560a37b88f59483040771fd1750e76b9939abfbb1b5a23fd6dfbae77f6b338abffe7cae7329cd9b9bb86b + languageName: node + linkType: hard + "table@npm:4.0.2": version: 4.0.2 resolution: "table@npm:4.0.2" @@ -40251,6 +40383,13 @@ __metadata: languageName: node linkType: hard +"titleize@npm:^3.0.0": + version: 3.0.0 + resolution: "titleize@npm:3.0.0" + checksum: 71fbbeabbfb36ccd840559f67f21e356e1d03da2915b32d2ae1a60ddcc13a124be2739f696d2feb884983441d159a18649e8d956648d591bdad35c430a6b6d28 + languageName: node + linkType: hard + "tls-browserify@npm:0.2.2": version: 0.2.2 resolution: "tls-browserify@npm:0.2.2" @@ -40811,7 +40950,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:2.6.2": +"tslib@npm:2.6.2, tslib@npm:^2.5.0, tslib@npm:^2.6.0": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad @@ -41588,6 +41727,13 @@ __metadata: languageName: node linkType: hard +"untildify@npm:^4.0.0": + version: 4.0.0 + resolution: "untildify@npm:4.0.0" + checksum: 39ced9c418a74f73f0a56e1ba4634b4d959422dff61f4c72a8e39f60b99380c1b45ed776fbaa0a4101b157e4310d873ad7d114e8534ca02609b4916bb4187fb9 + languageName: node + linkType: hard + "upath@npm:^2.0.1": version: 2.0.1 resolution: "upath@npm:2.0.1"