Skip to content

Commit

Permalink
chore(linting): update codelyzer & tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
sebholstein committed Oct 31, 2017
1 parent 305320a commit 0ce079e
Show file tree
Hide file tree
Showing 7 changed files with 807 additions and 983 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"angular2-template-loader": "^0.6.2",
"awesome-typescript-loader": "3.1.2",
"clang-format": "1.0.46",
"codelyzer": "3.0.0-beta.4",
"codelyzer": "^3.2.2",
"conventional-changelog": "^1.1.0",
"copy-webpack-plugin": "^4.0.1",
"copyfiles": "^1.0.0",
Expand All @@ -93,7 +93,7 @@
"rollup": "0.41.6",
"rxjs": "^5.2.0",
"ts-helpers": "^1.1.2",
"tslint": "~4.5.1",
"tslint": "^5.8.0",
"tslint-loader": "^3.4.3",
"typescript": "~2.2.0",
"webpack": "2.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function coreDirectives() {
AgmPolygon, AgmPolyline, AgmPolylinePoint, AgmKmlLayer,
AgmDataLayer
];
};
}

/**
* The angular-google-maps core module. Contains all Directives/Services/Pipes
Expand Down
18 changes: 9 additions & 9 deletions packages/core/services/managers/circle-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class CircleManager {
visible: circle.visible,
zIndex: circle.zIndex
}));
};
}

/**
* Removes the given circle from the map.
Expand All @@ -44,15 +44,15 @@ export class CircleManager {

setOptions(circle: AgmCircle, options: mapTypes.CircleOptions): Promise<void> {
return this._circles.get(circle).then((c) => c.setOptions(options));
};
}

getBounds(circle: AgmCircle): Promise<mapTypes.LatLngBounds> {
return this._circles.get(circle).then((c) => c.getBounds());
};
}

getCenter(circle: AgmCircle): Promise<mapTypes.LatLng> {
return this._circles.get(circle).then((c) => c.getCenter());
};
}

getRadius(circle: AgmCircle): Promise<number> {
return this._circles.get(circle).then((c) => c.getRadius());
Expand All @@ -61,23 +61,23 @@ export class CircleManager {
setCenter(circle: AgmCircle): Promise<void> {
return this._circles.get(circle).then(
(c) => { return c.setCenter({lat: circle.latitude, lng: circle.longitude}); });
};
}

setEditable(circle: AgmCircle): Promise<void> {
return this._circles.get(circle).then((c) => { return c.setEditable(circle.editable); });
};
}

setDraggable(circle: AgmCircle): Promise<void> {
return this._circles.get(circle).then((c) => { return c.setDraggable(circle.draggable); });
};
}

setVisible(circle: AgmCircle): Promise<void> {
return this._circles.get(circle).then((c) => { return c.setVisible(circle.visible); });
};
}

setRadius(circle: AgmCircle): Promise<void> {
return this._circles.get(circle).then((c) => { return c.setRadius(circle.radius); });
};
}

createEventObservable<T>(eventName: string, circle: AgmCircle): Observable<T> {
return Observable.create((observer: Observer<T>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export class NoOpMapsAPILoader implements MapsAPILoader {
'Google Maps API not loaded on page. Make sure window.google.maps is available!');
}
return Promise.resolve();
};
}
}
4 changes: 2 additions & 2 deletions packages/snazzy-info-window/directives/snazzy-info-window.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Host, SkipSelf, AfterViewInit, EventEmitter, Input, SimpleChanges, ViewContainerRef, TemplateRef, Output, Optional, OnDestroy, ElementRef, Component, ViewChild, ContentChild } from '@angular/core';
import { Host, SkipSelf, OnChanges, AfterViewInit, EventEmitter, Input, SimpleChanges, ViewContainerRef, TemplateRef, Output, Optional, OnDestroy, ElementRef, Component, ViewChild, ContentChild } from '@angular/core';
import { AgmMarker, GoogleMapsAPIWrapper, MarkerManager, MapsAPILoader } from '@agm/core';

declare var System: any;
Expand All @@ -8,7 +8,7 @@ declare var System: any;
selector: 'agm-snazzy-info-window',
template: '<div #outerWrapper><div #viewContainer></div></div><ng-content></ng-content>'
})
export class AgmSnazzyInfoWindow implements AfterViewInit, OnDestroy {
export class AgmSnazzyInfoWindow implements AfterViewInit, OnDestroy, OnChanges {
/**
* The latitude and longitude where the info window is anchored.
* The offset will default to 0px when using this option. Only required/used if you are not using a agm-marker.
Expand Down
5 changes: 1 addition & 4 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-delcaration": "nospace",
"variable-delcaration": "nospace"
"parameter": "nospace"
}
],
"variable-name": [
Expand All @@ -74,7 +72,6 @@
"check-decl",
"check-operator",
"check-separator",
"check-module",
"check-type"
],
"component-selector": [true, "element", "agm", "kebab-case"],
Expand Down
Loading

0 comments on commit 0ce079e

Please sign in to comment.