From 4ee028289e09bbec1174ece9615d1aebc255a3e0 Mon Sep 17 00:00:00 2001 From: Dave Bauman Date: Thu, 4 Jan 2024 13:14:56 -0500 Subject: [PATCH] chore(deps): bump eslint-plugin-prettier from 4.2.1 to 5.1.2 --- package-lock.json | 121 +++++++++++++++--- package.json | 2 +- packages/backend/package.json | 2 +- .../resolvers/activity-details.resolver.ts | 5 +- .../backend/src/resolvers/news.resolver.ts | 5 +- .../src/resolvers/template.resolver.ts | 5 +- .../src/services/change-history.service.ts | 5 +- packages/convertbot/package.json | 2 +- packages/frontend/package.json | 2 +- .../src/shared/remark/generic-attrs.ts | 5 +- packages/frontend/src/store/user.slice.ts | 32 +++-- packages/slackbot/package.json | 2 +- 12 files changed, 141 insertions(+), 47 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8426ee4c4..0f75f9ab6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "eslint-plugin-unicorn": "43.0.2", "fs-extra": "11.2.0", "globby": "11.0.4", @@ -6240,6 +6240,18 @@ "node": ">=10.12.0" } }, + "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/@popperjs/core": { "version": "2.11.8", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", @@ -12133,21 +12145,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 } @@ -23037,6 +23058,28 @@ "ieee754": "^1.1.13" } }, + "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/synckit/node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true + }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", @@ -24356,6 +24399,12 @@ "vega-lite": "*" } }, + "node_modules/vega-embed/node_modules/yallist": { + "version": "4.0.0", + "extraneous": true, + "inBundle": true, + "license": "ISC" + }, "node_modules/vega-encode": { "version": "4.9.1", "resolved": "https://registry.npmjs.org/vega-encode/-/vega-encode-4.9.1.tgz", @@ -25636,7 +25685,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "find": "0.3.0", "fs-extra": "11.2.0", "jest": "27.5.1", @@ -25677,7 +25726,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "jest": "27.5.1", "nodemon": "3.0.2", "npm-run-all": "4.1.5", @@ -25783,7 +25832,7 @@ "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.29.1", "eslint-plugin-jsx-a11y": "6.8.0", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "eslint-plugin-react-hooks": "4.6.0", "jest": "27.5.1", "prettier": "3.1.1", @@ -27262,7 +27311,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "jest": "27.5.1", "nodemon": "3.0.2", "npm-run-all": "4.1.5", @@ -31480,7 +31529,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "express": "4.18.1", "express-async-errors": "3.1.1", "file-type": "16.5.3", @@ -31546,7 +31595,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "express": "4.18.1", "express-async-errors": "3.1.1", "helmet": "5.1.0", @@ -31604,7 +31653,7 @@ "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.29.1", "eslint-plugin-jsx-a11y": "6.8.0", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "eslint-plugin-react-hooks": "4.6.0", "framer-motion": "10.11.2", "graphql": "15.8.0", @@ -32718,7 +32767,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "express": "4.18.1", "jest": "27.5.1", "module-alias": "2.2.2", @@ -33404,6 +33453,12 @@ "webcrypto-core": "^1.2.0" } }, + "@pkgr/core": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.0.tgz", + "integrity": "sha512-Zwq5OCzuwJC2jwqmpEQt7Ds1DTi6BWSwoGkbb1n9pO3hzb35BoJELx7c0T23iDkBGkh2e7tvOtjF3tr3OaQHDQ==", + "dev": true + }, "@popperjs/core": { "version": "2.11.8", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", @@ -38028,12 +38083,13 @@ } }, "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, "requires": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.6" } }, "eslint-plugin-react-hooks": { @@ -45988,6 +46044,24 @@ } } }, + "synckit": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", + "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", + "dev": true, + "requires": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "dependencies": { + "tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true + } + } + }, "tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", @@ -46945,6 +47019,13 @@ "vega-schema-url-parser": "^2.2.0", "vega-themes": "^2.10.0", "vega-tooltip": "^0.27.0" + }, + "dependencies": { + "yallist": { + "version": "4.0.0", + "bundled": true, + "extraneous": true + } } }, "vega-encode": { diff --git a/package.json b/package.json index 2b143d81f..5c2708704 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "eslint-plugin-unicorn": "43.0.2", "fs-extra": "11.2.0", "globby": "11.0.4", diff --git a/packages/backend/package.json b/packages/backend/package.json index 847e2dc10..dc6827ba4 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -105,7 +105,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "find": "0.3.0", "fs-extra": "11.2.0", "jest": "27.5.1", diff --git a/packages/backend/src/resolvers/activity-details.resolver.ts b/packages/backend/src/resolvers/activity-details.resolver.ts index c00041211..128ad89d9 100644 --- a/packages/backend/src/resolvers/activity-details.resolver.ts +++ b/packages/backend/src/resolvers/activity-details.resolver.ts @@ -88,7 +88,10 @@ export class InsightActivityDetailsResolver { @Service() @Resolver(() => InsightCollaboratorActivityDetails) export class InsightCollaboratorActivityDetailsResolver { - constructor(private readonly insightService: InsightService, private readonly userService: UserService) {} + constructor( + private readonly insightService: InsightService, + private readonly userService: UserService + ) {} @FieldResolver(() => Insight, { nullable: true }) async insight(@Root() activityDetails: IndexedCollaboratorActivityDetails): Promise { diff --git a/packages/backend/src/resolvers/news.resolver.ts b/packages/backend/src/resolvers/news.resolver.ts index d1b76fa9e..a63cc6bff 100644 --- a/packages/backend/src/resolvers/news.resolver.ts +++ b/packages/backend/src/resolvers/news.resolver.ts @@ -31,7 +31,10 @@ const logger = getLogger('news.resolver'); @Service() @Resolver(() => News) export class NewsResolver { - constructor(private readonly newsService: NewsService, private readonly userService: UserService) {} + constructor( + private readonly newsService: NewsService, + private readonly userService: UserService + ) {} @Authorized({ user: true }) @Query(() => NewsConnection) diff --git a/packages/backend/src/resolvers/template.resolver.ts b/packages/backend/src/resolvers/template.resolver.ts index 516fef6de..585ad5e2b 100644 --- a/packages/backend/src/resolvers/template.resolver.ts +++ b/packages/backend/src/resolvers/template.resolver.ts @@ -30,7 +30,10 @@ const logger = getLogger('template.resolver'); @Service() @Resolver() export class TemplateResolver { - constructor(private readonly insightService: InsightService, private readonly templateService: TemplateService) {} + constructor( + private readonly insightService: InsightService, + private readonly templateService: TemplateService + ) {} @Authorized({ user: true }) @Query(() => [Insight]) diff --git a/packages/backend/src/services/change-history.service.ts b/packages/backend/src/services/change-history.service.ts index b9adedd7a..16a2d3474 100644 --- a/packages/backend/src/services/change-history.service.ts +++ b/packages/backend/src/services/change-history.service.ts @@ -33,7 +33,10 @@ const logger = getLogger('change-history.service'); @Service() export class ChangeHistoryService { - constructor(private readonly userService: UserService, private readonly activityService: ActivityService) { + constructor( + private readonly userService: UserService, + private readonly activityService: ActivityService + ) { logger.trace('Constructing New Change History Service'); } diff --git a/packages/convertbot/package.json b/packages/convertbot/package.json index fdf789030..46cd19abd 100644 --- a/packages/convertbot/package.json +++ b/packages/convertbot/package.json @@ -47,7 +47,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "jest": "27.5.1", "nodemon": "3.0.2", "npm-run-all": "4.1.5", diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 6c61ca708..32cf9374b 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -97,7 +97,7 @@ "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.29.1", "eslint-plugin-jsx-a11y": "6.8.0", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "eslint-plugin-react-hooks": "4.6.0", "jest": "27.5.1", "prettier": "3.1.1", diff --git a/packages/frontend/src/shared/remark/generic-attrs.ts b/packages/frontend/src/shared/remark/generic-attrs.ts index a983c55b6..458c7b8a1 100644 --- a/packages/frontend/src/shared/remark/generic-attrs.ts +++ b/packages/frontend/src/shared/remark/generic-attrs.ts @@ -24,7 +24,10 @@ export class KeyAttribute implements Attribute { } export class KeyValueAttribute implements Attribute { - constructor(public key: string, public value: string) {} + constructor( + public key: string, + public value: string + ) {} } const lang = Parsimmon.createLanguage({ diff --git a/packages/frontend/src/store/user.slice.ts b/packages/frontend/src/store/user.slice.ts index f5c734453..a5b506a60 100644 --- a/packages/frontend/src/store/user.slice.ts +++ b/packages/frontend/src/store/user.slice.ts @@ -54,24 +54,22 @@ export const login = createAsyncThunk( enableAuthorization(oidcAccessToken); const response = await urqlClient - .mutation( - gql` - mutation login { - login { - id - userName - email - displayName - locale - defaultTemplateId - avatarUrl - team - isAdmin - featureFlags - } + .mutation(gql` + mutation login { + login { + id + userName + email + displayName + locale + defaultTemplateId + avatarUrl + team + isAdmin + featureFlags } - ` - ) + } + `) .toPromise(); return response.error ? thunkApi.rejectWithValue(response.error.message) : response.data.login; } catch (error: any) { diff --git a/packages/slackbot/package.json b/packages/slackbot/package.json index 333c9962f..7f6496846 100644 --- a/packages/slackbot/package.json +++ b/packages/slackbot/package.json @@ -44,7 +44,7 @@ "eslint-config-prettier": "8.5.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", - "eslint-plugin-prettier": "4.2.1", + "eslint-plugin-prettier": "5.1.2", "jest": "27.5.1", "nodemon": "3.0.2", "npm-run-all": "4.1.5",