From d88da3876e9f2119b5800e2bd590a4f02e4e0c90 Mon Sep 17 00:00:00 2001 From: Jeremy Eychenne Date: Thu, 12 Dec 2024 14:13:43 +0100 Subject: [PATCH] build(prettier): update prettier to `^3.4.3` and run `format` --- package.json | 2 +- .../src/lib/controls/attribution.component.ts | 5 ++++- .../src/lib/controls/mouseposition.component.ts | 5 ++++- .../src/lib/geom/simplegeometry.component.ts | 5 ++++- src/app/app.component.ts | 5 ++++- src/app/cluster/cluster.component.ts | 4 ++-- src/app/swipe/swipe.component.ts | 4 +++- yarn.lock | 8 ++++---- 8 files changed, 26 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index bf131143..ea2794f5 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.0.0", "ng-packagr": "~15.2.2", - "prettier": "^2.0.3", + "prettier": "^3.4.2", "protractor": "~7.0.0", "ts-node": "~8.3.0", "typescript": "~4.8.4" diff --git a/projects/ngx-openlayers/src/lib/controls/attribution.component.ts b/projects/ngx-openlayers/src/lib/controls/attribution.component.ts index b49654d4..b07d3783 100644 --- a/projects/ngx-openlayers/src/lib/controls/attribution.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/attribution.component.ts @@ -14,7 +14,10 @@ export class ControlAttributionComponent implements OnInit, OnDestroy { instance: Attribution; target: HTMLElement; - constructor(private map: MapComponent, private element: ElementRef) {} + constructor( + private map: MapComponent, + private element: ElementRef + ) {} ngOnInit(): void { this.target = this.element.nativeElement; diff --git a/projects/ngx-openlayers/src/lib/controls/mouseposition.component.ts b/projects/ngx-openlayers/src/lib/controls/mouseposition.component.ts index 565690ee..b6705b7f 100644 --- a/projects/ngx-openlayers/src/lib/controls/mouseposition.component.ts +++ b/projects/ngx-openlayers/src/lib/controls/mouseposition.component.ts @@ -19,7 +19,10 @@ export class ControlMousePositionComponent implements OnInit, OnDestroy { instance: MousePosition; - constructor(private map: MapComponent, private element: ElementRef) {} + constructor( + private map: MapComponent, + private element: ElementRef + ) {} ngOnInit(): void { this.target = this.element.nativeElement; diff --git a/projects/ngx-openlayers/src/lib/geom/simplegeometry.component.ts b/projects/ngx-openlayers/src/lib/geom/simplegeometry.component.ts index a75fa8fa..a336173c 100644 --- a/projects/ngx-openlayers/src/lib/geom/simplegeometry.component.ts +++ b/projects/ngx-openlayers/src/lib/geom/simplegeometry.component.ts @@ -10,7 +10,10 @@ export abstract class SimpleGeometryComponent implements OnInit { instance: SimpleGeometry; componentType = 'simple-geometry'; - constructor(protected map: MapComponent, protected host: FeatureComponent) {} + constructor( + protected map: MapComponent, + protected host: FeatureComponent + ) {} ngOnInit(): void { this.host.instance.setGeometry(this.instance); diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 93f17001..515a2650 100755 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -23,7 +23,10 @@ import { Component } from '@angular/core'; font-family: Roboto, sans-serif; font-size: 16px; opacity: 1; - box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); + box-shadow: + 0 2px 4px -1px rgba(0, 0, 0, 0.2), + 0 4px 5px 0 rgba(0, 0, 0, 0.14), + 0 1px 10px 0 rgba(0, 0, 0, 0.12); } header h1 { diff --git a/src/app/cluster/cluster.component.ts b/src/app/cluster/cluster.component.ts index b84b5a3d..89228b14 100644 --- a/src/app/cluster/cluster.component.ts +++ b/src/app/cluster/cluster.component.ts @@ -43,8 +43,8 @@ import { Component, OnInit } from '@angular/core'; [1.47, 43.545], [1.51, 43.545], [1.51, 43.565], - [1.47, 43.565] - ] + [1.47, 43.565], + ], ]" [srid]="'EPSG:4326'" > diff --git a/src/app/swipe/swipe.component.ts b/src/app/swipe/swipe.component.ts index ea7b3769..3a25bde1 100644 --- a/src/app/swipe/swipe.component.ts +++ b/src/app/swipe/swipe.component.ts @@ -32,7 +32,9 @@ import { MapComponent } from 'ngx-openlayers'; styles: [ ` .swipe-button { - box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), + box-shadow: + 0 3px 5px -1px rgba(0, 0, 0, 0.2), + 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12); background-color: #0a2340; color: white; diff --git a/yarn.lock b/yarn.lock index 8817f911..e3e0285e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7815,10 +7815,10 @@ prelude-ls@^1.2.1: resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@^2.0.3: - version "2.8.8" - resolved "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== +prettier@^3.4.2: + version "3.4.2" + resolved "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz#a5ce1fb522a588bf2b78ca44c6e6fe5aa5a2b13f" + integrity sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ== pretty-bytes@^5.3.0: version "5.6.0"