From c1f41b3f5537a38a2ad4708140fe3a7ba27c0f80 Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:13:29 +0200 Subject: [PATCH] chore: Add semver, remove electrum-cash, install eslint-prettier --- package-lock.json | 123 +++++++++++++++------------------------------- package.json | 5 +- 2 files changed, 41 insertions(+), 87 deletions(-) diff --git a/package-lock.json b/package-lock.json index 384b08f..65ba951 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,6 @@ "@reduxjs/toolkit": "^1.7.1", "electron-redux": "2.0.0-alpha.8", "electron-updater": "^5.3.0", - "electrum-cash": "^2.0.10", "humanize-duration": "^3.27.2", "jayson": "^4.0.0", "multiaddr": "^10.0.1", @@ -30,6 +29,7 @@ "react-redux": "^7.2.6", "react-router-dom": "^6.2.1", "regenerator-runtime": "^0.13.9", + "semver": "^7.6.2", "socket.io-client": "^4.4.0", "socks-proxy-agent": "^8.0.3", "uuid": "^9.0.0", @@ -41,7 +41,6 @@ "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@types/better-sqlite3": "^7.4.2", - "@types/blocked-at": "^1.0.1", "@types/download": "^8.0.1", "@types/humanize-duration": "^3.27.1", "@types/jest": "^27.0.3", @@ -81,6 +80,7 @@ "eslint-plugin-import": "^2.25.3", "eslint-plugin-jest": "^25.3.2", "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-promise": "^6.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.3.0", @@ -93,7 +93,6 @@ "lint-staged": "^12.1.4", "mini-css-extract-plugin": "^2.4.5", "opencollective-postinstall": "^2.0.3", - "prettier": "^2.5.1", "react-refresh": "^0.11.0", "react-refresh-typescript": "^2.0.3", "react-test-renderer": "^17.0.2", @@ -2217,15 +2216,6 @@ "@types/node": "*" } }, - "node_modules/@types/blocked-at": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@types/blocked-at/-/blocked-at-1.0.4.tgz", - "integrity": "sha512-gZLwV/18nAAwK1VuHPaBI8wsHILutkjwyDjiafIP+PCkrX8vmQaW5wm9QRBZ6YkoA2iDvcQgqHud5EHuFVIqrQ==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/body-parser": { "version": "1.19.5", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", @@ -3988,14 +3978,6 @@ "node": ">=0.12.0" } }, - "node_modules/async-mutex": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.3.2.tgz", - "integrity": "sha512-HuTK7E7MT7jZEh1P9GtRW9+aTWiDWWi9InbZ5hjxrnRa39KS4BW04+xLBhYNS2aXhHUIKZSw3gj4Pn1pj+qGAA==", - "dependencies": { - "tslib": "^2.3.1" - } - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -7160,18 +7142,6 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==" }, - "node_modules/electrum-cash": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/electrum-cash/-/electrum-cash-2.0.10.tgz", - "integrity": "sha512-xxKXWyDsnUR2pkqzb7r7ANf6yzlHO8+Rkq8HOFkKiH1tF1BJwyh6sDhGAy4lkTv2sU8Uv1em/itYZ5n2Cr6zaA==", - "dependencies": { - "@types/ws": "^7.4.6", - "async-mutex": "^0.3.1", - "debug": "^4.3.2", - "isomorphic-ws": "^4.0.1", - "ws": "^7.5.2" - } - }, "node_modules/emittery": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", @@ -8075,36 +8045,6 @@ "semver": "bin/semver.js" } }, - "node_modules/eslint-config-erb/node_modules/eslint-plugin-prettier": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", - "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.8.6" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": "*", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - } - }, "node_modules/eslint-config-erb/node_modules/language-tags": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", @@ -8114,22 +8054,6 @@ "language-subtag-registry": "~0.3.2" } }, - "node_modules/eslint-config-erb/node_modules/prettier": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz", - "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", - "dev": true, - "peer": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, "node_modules/eslint-config-prettier": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", @@ -8471,6 +8395,36 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, + "node_modules/eslint-plugin-prettier": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", + "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.6" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } + } + }, "node_modules/eslint-plugin-promise": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.2.0.tgz", @@ -15096,15 +15050,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz", + "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -17844,7 +17798,8 @@ "node_modules/tslib": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", - "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==", + "dev": true }, "node_modules/tsutils": { "version": "3.21.0", diff --git a/package.json b/package.json index d3881dd..4251e64 100644 --- a/package.json +++ b/package.json @@ -156,7 +156,6 @@ "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@types/better-sqlite3": "^7.4.2", - "@types/blocked-at": "^1.0.1", "@types/download": "^8.0.1", "@types/humanize-duration": "^3.27.1", "@types/jest": "^27.0.3", @@ -196,6 +195,7 @@ "eslint-plugin-import": "^2.25.3", "eslint-plugin-jest": "^25.3.2", "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-promise": "^6.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.3.0", @@ -208,7 +208,6 @@ "lint-staged": "^12.1.4", "mini-css-extract-plugin": "^2.4.5", "opencollective-postinstall": "^2.0.3", - "prettier": "^2.5.1", "react-refresh": "^0.11.0", "react-refresh-typescript": "^2.0.3", "react-test-renderer": "^17.0.2", @@ -236,7 +235,6 @@ "@reduxjs/toolkit": "^1.7.1", "electron-redux": "2.0.0-alpha.8", "electron-updater": "^5.3.0", - "electrum-cash": "^2.0.10", "humanize-duration": "^3.27.2", "jayson": "^4.0.0", "multiaddr": "^10.0.1", @@ -252,6 +250,7 @@ "react-redux": "^7.2.6", "react-router-dom": "^6.2.1", "regenerator-runtime": "^0.13.9", + "semver": "^7.6.2", "socket.io-client": "^4.4.0", "socks-proxy-agent": "^8.0.3", "uuid": "^9.0.0",