From f85725582133dd0c95d71353c32275b4d21b4cb6 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 30 Aug 2023 21:55:14 +0200 Subject: [PATCH] style: update prettier to 3.0.3 --- app/components/ltGeolocate.ts | 7 +++++-- app/components/ltLanguageSelector.ts | 11 +++++++---- index.html | 2 +- package.json | 2 +- yarn.lock | 8 ++++---- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/app/components/ltGeolocate.ts b/app/components/ltGeolocate.ts index be0fd18..155bf00 100644 --- a/app/components/ltGeolocate.ts +++ b/app/components/ltGeolocate.ts @@ -112,8 +112,11 @@ class LtGeolocateController implements ng.IComponentController { if (newIndex >= 0 && titles[newIndex]) { this.title = titles[newIndex]; const target = $event.target as HTMLElement; - window.requestAnimationFrame(() => - target.querySelectorAll('.list-group-item')?.[newIndex]?.scrollIntoView?.({block: 'center'}) + window.requestAnimationFrame( + () => + target + .querySelectorAll('.list-group-item') + ?.[newIndex]?.scrollIntoView?.({block: 'center'}) ); } } diff --git a/app/components/ltLanguageSelector.ts b/app/components/ltLanguageSelector.ts index 8fc7208..9e4fe1d 100644 --- a/app/components/ltLanguageSelector.ts +++ b/app/components/ltLanguageSelector.ts @@ -30,10 +30,13 @@ class ltLanguageSelector implements ng.IComponentController { ) { // eslint-disable-next-line @typescript-eslint/no-explicit-any languageCodes.forEach(lang => this.gettextCatalog.setStrings(lang, (i18n as any)[lang])); - this.languages = languageCodes.reduce((obj, lang) => { - obj[lang] = this.getDisplayString(lang); - return obj; - }, {} as Record); + this.languages = languageCodes.reduce( + (obj, lang) => { + obj[lang] = this.getDisplayString(lang); + return obj; + }, + {} as Record + ); } $onInit() { diff --git a/index.html b/index.html index 28f3859..80d916a 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + diff --git a/package.json b/package.json index 9407966..a2c9324 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "eslint": "^8.48.0", "husky": "^7.0.4", "lint-staged": "^12.4.0", - "prettier": "^2.6.2", + "prettier": "^3.0.3", "typescript": "^4.6.3", "vite": "^4.4.9" }, diff --git a/yarn.lock b/yarn.lock index 33ebe68..4061beb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1453,10 +1453,10 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@^2.6.2: - version "2.6.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032" - integrity sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew== +prettier@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== punycode@^2.1.0: version "2.1.1"