From b3a6167b01c82b74140fb3381791a546f08e6a3a Mon Sep 17 00:00:00 2001 From: Olivia Guyot Date: Tue, 14 Jan 2025 13:33:15 +0100 Subject: [PATCH] chore: updte prettier, run format:write --- apps/datahub/src/app/app.module.ts | 5 ++++- .../organization-header.component.ts | 5 ++++- docs/guide/custom-app.md | 5 +---- package-lock.json | 13 +++++++------ package.json | 2 +- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/apps/datahub/src/app/app.module.ts b/apps/datahub/src/app/app.module.ts index 9fb5e7247..fa39980c6 100644 --- a/apps/datahub/src/app/app.module.ts +++ b/apps/datahub/src/app/app.module.ts @@ -268,7 +268,10 @@ export const metaReducers: MetaReducer[] = !environment.production ? [] : [] bootstrap: [AppComponent], }) export class AppModule { - constructor(router: Router, @Inject(DOCUMENT) private document: Document) { + constructor( + router: Router, + @Inject(DOCUMENT) private document: Document + ) { ThemeService.applyCssVariables( getThemeConfig().PRIMARY_COLOR, getThemeConfig().SECONDARY_COLOR, diff --git a/apps/datahub/src/app/organization/organization-header/organization-header.component.ts b/apps/datahub/src/app/organization/organization-header/organization-header.component.ts index b5bdf1f21..084bd3852 100644 --- a/apps/datahub/src/app/organization/organization-header/organization-header.component.ts +++ b/apps/datahub/src/app/organization/organization-header/organization-header.component.ts @@ -52,7 +52,10 @@ export class OrganizationHeaderComponent { foregroundColor = getThemeConfig().HEADER_FOREGROUND_COLOR || '#ffffff' showLanguageSwitcher = getGlobalConfig().LANGUAGES?.length > 0 - constructor(private location: Location, private router: Router) {} + constructor( + private location: Location, + private router: Router + ) {} back() { this.organization diff --git a/docs/guide/custom-app.md b/docs/guide/custom-app.md index a038d5bff..c40490e3d 100644 --- a/docs/guide/custom-app.md +++ b/docs/guide/custom-app.md @@ -195,10 +195,7 @@ The root `index.html` file of your application should include the Material Symbo - + ``` diff --git a/package-lock.json b/package-lock.json index 2c2f9d196..bdf0ce10d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -145,7 +145,7 @@ "ngx-translate-testing": "^6.1.0", "nx": "20.2.2", "postcss": "^8.4.31", - "prettier": "2.7.1", + "prettier": "3.4.2", "react": "^18.2.0", "react-dom": "^18.2.0", "tailwindcss": "^3.3.3", @@ -25493,15 +25493,16 @@ } }, "node_modules/prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", + "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", "devOptional": true, + "license": "MIT", "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" diff --git a/package.json b/package.json index 337b34eb3..0dddde860 100644 --- a/package.json +++ b/package.json @@ -180,7 +180,7 @@ "ngx-translate-testing": "^6.1.0", "nx": "20.2.2", "postcss": "^8.4.31", - "prettier": "2.7.1", + "prettier": "3.4.2", "react": "^18.2.0", "react-dom": "^18.2.0", "tailwindcss": "^3.3.3",