Skip to content

Commit

Permalink
style: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-eychenne committed Dec 13, 2024
1 parent 3b4874b commit 1b07710
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
"plugin:@angular-eslint/template/process-inline-templates"
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"jsdoc/newline-after-description": "off",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Input, OnChanges, OnInit, Optional, SimpleChanges } from '@angular/core';
import { Component, Input, OnChanges, OnInit, Optional } from '@angular/core';
import { Coordinate } from 'ol/coordinate';
import { transform } from 'ol/proj';
import { GeometryLinestringComponent } from './geom/geometrylinestring.component';
Expand Down Expand Up @@ -50,7 +50,7 @@ export class CollectionCoordinatesComponent implements OnChanges, OnInit {
this.transformCoordinates();
}

ngOnChanges(changes: SimpleChanges): void {
ngOnChanges(): void {
this.transformCoordinates();
}

Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-openlayers/src/lib/coordinate.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Input, OnChanges, OnInit, Optional, SimpleChanges } from '@angular/core';
import { Component, Input, OnChanges, OnInit, Optional } from '@angular/core';
import { transform } from 'ol/proj';
import { GeometryCircleComponent } from './geom/geometrycircle.component';
import { GeometryPointComponent } from './geom/geometrypoint.component';
Expand Down Expand Up @@ -46,7 +46,7 @@ export class CoordinateComponent implements OnChanges, OnInit {
this.transformCoordinates();
}

ngOnChanges(changes: SimpleChanges): void {
ngOnChanges(): void {
this.transformCoordinates();
}

Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-openlayers/src/lib/feature.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { Component, Input, OnChanges, OnDestroy, OnInit } from '@angular/core';
import { Feature } from 'ol';
import { SourceVectorComponent } from './sources/vector.component';

Expand Down Expand Up @@ -27,7 +27,7 @@ export class FeatureComponent implements OnInit, OnDestroy, OnChanges {
this.host.instance.removeFeature(this.instance);
}

ngOnChanges(changes: SimpleChanges): void {
ngOnChanges(): void {
if (this.instance) {
this.instance.setId(this.id);
}
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-openlayers/src/lib/graticule.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class GraticuleComponent implements AfterContentInit, OnChanges, OnDestro
@Input()
latLabelPosition: number;

instance: any;
instance: Graticule;
componentType = 'graticule';

constructor(private map: MapComponent) {}
Expand Down
3 changes: 2 additions & 1 deletion projects/ngx-openlayers/src/lib/sources/source.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import { Directive, Input, OnDestroy } from '@angular/core';

import { Source } from 'ol/source';
import { LayerComponent } from '../layers/layer.component';
import { AttributionLike } from 'ol/source/Source';

@Directive()
export abstract class SourceComponent implements OnDestroy {
@Input()
attributions: any;
attributions: AttributionLike;

public instance: Source;
public componentType = 'source';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { LayerTileComponent } from '../layers/layertile.component';
import { TileGridWMTSComponent } from '../tilegridwmts.component';
import { SourceComponent } from './source.component';
import { RequestEncoding } from 'ol/source/WMTS';
import { ImageTile } from 'ol';

@Component({
selector: 'aol-source-tilewmts',
Expand All @@ -43,7 +44,7 @@ export class SourceTileWMTSComponent extends SourceComponent implements AfterCon
@Input()
style: string;
@Input()
tileClass?: any;
tileClass?: typeof ImageTile;
@Input()
tilePixelRatio?: number;
@Input()
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-openlayers/src/lib/tilegrid.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { Component, Input, OnChanges, OnInit } from '@angular/core';
import { createXYZ } from 'ol/tilegrid';
import TileGrid from 'ol/tilegrid/TileGrid';
import { Extent } from 'ol/extent';
Expand Down Expand Up @@ -33,7 +33,7 @@ export class TileGridComponent implements OnInit, OnChanges {
}
}

ngOnChanges(changes: SimpleChanges): void {
ngOnChanges(): void {
if (!this.resolutions) {
this.instance = createXYZ(this);
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';

@Component({
selector: 'app-display-geojson-source',
Expand Down
2 changes: 1 addition & 1 deletion src/app/swipe/swipe.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class SwipeComponent implements OnInit {
paddingSize = 16;

@HostListener('window:resize', ['$event'])
onWindowResize(event): void {
onWindowResize(): void {
this.resetSwipeValues();
}

Expand Down
4 changes: 1 addition & 3 deletions src/app/tile-json/tile-json.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ import { Component } from '@angular/core';
</aol-map>
`,
})
export class TileJsonComponent {
constructor() {}
}
export class TileJsonComponent {}

0 comments on commit 1b07710

Please sign in to comment.