Skip to content

Commit

Permalink
style: update prettier to 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Aug 30, 2023
1 parent 9fe37e1 commit f857255
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
7 changes: 5 additions & 2 deletions app/components/ltGeolocate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
);
}
}
Expand Down
11 changes: 7 additions & 4 deletions app/components/ltLanguageSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>);
this.languages = languageCodes.reduce(
(obj, lang) => {
obj[lang] = this.getDisplayString(lang);
return obj;
},
{} as Record<string, string>
);
}

$onInit() {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f857255

Please sign in to comment.