From aa009c366dbf3569c9858563da0689f4f0cea00a Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 28 Dec 2023 15:15:06 +0100 Subject: [PATCH] prettier update --- commafeed-client/.eslintrc | 4 +- commafeed-client/.prettierrc | 3 +- commafeed-client/package-lock.json | 79 ++++++++++++++++++++++-------- commafeed-client/package.json | 6 +-- 4 files changed, 65 insertions(+), 27 deletions(-) diff --git a/commafeed-client/.eslintrc b/commafeed-client/.eslintrc index 61e6130f..6b743e15 100644 --- a/commafeed-client/.eslintrc +++ b/commafeed-client/.eslintrc @@ -6,9 +6,9 @@ "react-app", "airbnb", "airbnb-typescript", - "prettier" + "plugin:prettier/recommended" ], - "plugins": ["@typescript-eslint", "prettier", "hooks"], + "plugins": ["@typescript-eslint", "hooks"], "parserOptions": { "project": "./tsconfig.json" }, diff --git a/commafeed-client/.prettierrc b/commafeed-client/.prettierrc index 53681b50..ff8e2b00 100644 --- a/commafeed-client/.prettierrc +++ b/commafeed-client/.prettierrc @@ -3,5 +3,6 @@ "semi": false, "tabWidth": 4, "arrowParens": "avoid", - "endOfLine": "auto" + "endOfLine": "auto", + "trailingComma": "es5" } diff --git a/commafeed-client/package-lock.json b/commafeed-client/package-lock.json index e510c864..a1133772 100644 --- a/commafeed-client/package-lock.json +++ b/commafeed-client/package-lock.json @@ -63,11 +63,11 @@ "eslint": "^8.41.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", - "eslint-config-prettier": "^8.8.0", + "eslint-config-prettier": "^9.1.0", "eslint-config-react-app": "^7.0.1", "eslint-plugin-hooks": "^0.4.3", - "eslint-plugin-prettier": "^4.2.1", - "prettier": "^2.8.8", + "eslint-plugin-prettier": "^5.1.2", + "prettier": "^3.1.1", "rollup-plugin-visualizer": "^5.9.0", "typescript": "^5.0.4", "vite": "^4.3.9", @@ -3209,6 +3209,18 @@ "node": ">= 8" } }, + "node_modules/@pkgr/core": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.0.tgz", + "integrity": "sha512-Zwq5OCzuwJC2jwqmpEQt7Ds1DTi6BWSwoGkbb1n9pO3hzb35BoJELx7c0T23iDkBGkh2e7tvOtjF3tr3OaQHDQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/@radix-ui/number": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.0.0.tgz", @@ -6977,9 +6989,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -7197,21 +7209,30 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.2.tgz", + "integrity": "sha512-dhlpWc9vOwohcWmClFcA+HjlvUpuyynYs0Rf+L/P6/0iQE6vlHW9l5bkfzN62/Stm9fbq8ku46qzde76T1xlSg==", "dev": true, "dependencies": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.6" }, "engines": { - "node": ">=12.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" }, "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" + "@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 } @@ -9922,15 +9943,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.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", "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" @@ -11399,6 +11420,22 @@ "react-dom": ">=17.0.0" } }, + "node_modules/synckit": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", + "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/tabbable": { "version": "6.1.2", "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.1.2.tgz", @@ -11623,9 +11660,9 @@ } }, "node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, "node_modules/tsutils": { "version": "3.21.0", diff --git a/commafeed-client/package.json b/commafeed-client/package.json index 4a644d07..dda386d9 100644 --- a/commafeed-client/package.json +++ b/commafeed-client/package.json @@ -69,11 +69,11 @@ "eslint": "^8.41.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", - "eslint-config-prettier": "^8.8.0", + "eslint-config-prettier": "^9.1.0", "eslint-config-react-app": "^7.0.1", "eslint-plugin-hooks": "^0.4.3", - "eslint-plugin-prettier": "^4.2.1", - "prettier": "^2.8.8", + "eslint-plugin-prettier": "^5.1.2", + "prettier": "^3.1.1", "rollup-plugin-visualizer": "^5.9.0", "typescript": "^5.0.4", "vite": "^4.3.9",