From f71542b6ac0fe284f084e59d043177b7b00cbae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20M=C3=BCller?= Date: Sun, 23 Oct 2016 12:09:17 +0200 Subject: [PATCH] chore(build): add codelyzer Closes #717 --- package.json | 1 + src/core/core-module.ts | 24 +++++++-------- src/core/directives/google-map-circle.ts | 12 ++++---- src/core/directives/google-map-info-window.ts | 12 ++++---- src/core/directives/google-map-marker.ts | 14 ++++----- src/core/directives/google-map-polygon.ts | 14 ++++----- .../directives/google-map-polyline-point.ts | 4 +-- src/core/directives/google-map-polyline.ts | 14 ++++----- src/core/directives/google-map.ts | 30 +++++++++---------- src/core/map-types.ts | 2 +- src/core/services/google-maps-api-wrapper.ts | 12 ++++---- src/core/services/managers/circle-manager.ts | 10 +++---- .../services/managers/info-window-manager.ts | 10 +++---- .../services/managers/marker-manager.spec.ts | 12 ++++---- src/core/services/managers/marker-manager.ts | 12 ++++---- .../services/managers/polygon-manager.spec.ts | 12 ++++---- src/core/services/managers/polygon-manager.ts | 12 ++++---- .../managers/polyline-manager.spec.ts | 12 ++++---- .../services/managers/polyline-manager.ts | 14 ++++----- .../lazy-maps-api-loader.spec.ts | 8 ++--- .../maps-api-loader/lazy-maps-api-loader.ts | 6 ++-- .../maps-api-loader/maps-api-loader.ts | 2 +- .../maps-api-loader/noop-maps-api-loader.ts | 2 +- src/core/utils/browser-globals.ts | 2 +- tslint.json | 24 +++++++++++++-- yarn.lock | 6 ++++ 26 files changed, 155 insertions(+), 128 deletions(-) diff --git a/package.json b/package.json index 9cf9fbec3..32a5bd40a 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "angular2-template-loader": "^0.5.0", "awesome-typescript-loader": "^2.2.4", "clang-format": "1.0.42", + "codelyzer": "^1.0.0-beta.2", "conventional-changelog": "^1.1.0", "copy-webpack-plugin": "^3.0.1", "copyfiles": "^1.0.0", diff --git a/src/core/core-module.ts b/src/core/core-module.ts index b28e07ddd..4da5e187f 100644 --- a/src/core/core-module.ts +++ b/src/core/core-module.ts @@ -1,16 +1,16 @@ -import {ModuleWithProviders, NgModule} from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; -import {SebmGoogleMap} from './directives/google-map'; -import {SebmGoogleMapCircle} from './directives/google-map-circle'; -import {SebmGoogleMapInfoWindow} from './directives/google-map-info-window'; -import {SebmGoogleMapMarker} from './directives/google-map-marker'; -import {SebmGoogleMapPolygon} from './directives/google-map-polygon'; -import {SebmGoogleMapPolyline} from './directives/google-map-polyline'; -import {SebmGoogleMapPolylinePoint} from './directives/google-map-polyline-point'; -import {LazyMapsAPILoader} from './services/maps-api-loader/lazy-maps-api-loader'; -import {LAZY_MAPS_API_CONFIG, LazyMapsAPILoaderConfigLiteral} from './services/maps-api-loader/lazy-maps-api-loader'; -import {MapsAPILoader} from './services/maps-api-loader/maps-api-loader'; -import {BROWSER_GLOBALS_PROVIDERS} from './utils/browser-globals'; +import { SebmGoogleMap } from './directives/google-map'; +import { SebmGoogleMapCircle } from './directives/google-map-circle'; +import { SebmGoogleMapInfoWindow } from './directives/google-map-info-window'; +import { SebmGoogleMapMarker } from './directives/google-map-marker'; +import { SebmGoogleMapPolygon } from './directives/google-map-polygon'; +import { SebmGoogleMapPolyline } from './directives/google-map-polyline'; +import { SebmGoogleMapPolylinePoint } from './directives/google-map-polyline-point'; +import { LazyMapsAPILoader } from './services/maps-api-loader/lazy-maps-api-loader'; +import { LAZY_MAPS_API_CONFIG, LazyMapsAPILoaderConfigLiteral } from './services/maps-api-loader/lazy-maps-api-loader'; +import { MapsAPILoader } from './services/maps-api-loader/maps-api-loader'; +import { BROWSER_GLOBALS_PROVIDERS } from './utils/browser-globals'; /** * @internal diff --git a/src/core/directives/google-map-circle.ts b/src/core/directives/google-map-circle.ts index e5a67e3e1..5a55afff6 100644 --- a/src/core/directives/google-map-circle.ts +++ b/src/core/directives/google-map-circle.ts @@ -1,10 +1,10 @@ -import {Directive, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChange} from '@angular/core'; -import {Subscription} from 'rxjs/Subscription'; +import { Directive, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChange } from '@angular/core'; +import { Subscription } from 'rxjs/Subscription'; -import {MouseEvent} from '../map-types'; -import {LatLng, LatLngBounds, LatLngLiteral} from '../services/google-maps-types'; -import {MouseEvent as MapMouseEvent} from '../services/google-maps-types'; -import {CircleManager} from '../services/managers/circle-manager'; +import { MouseEvent } from '../map-types'; +import { LatLng, LatLngBounds, LatLngLiteral } from '../services/google-maps-types'; +import { MouseEvent as MapMouseEvent } from '../services/google-maps-types'; +import { CircleManager } from '../services/managers/circle-manager'; @Directive({ selector: 'sebm-google-map-circle', diff --git a/src/core/directives/google-map-info-window.ts b/src/core/directives/google-map-info-window.ts index d116abc2d..1febe5b41 100644 --- a/src/core/directives/google-map-info-window.ts +++ b/src/core/directives/google-map-info-window.ts @@ -1,8 +1,8 @@ -import {Component, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChange} from '@angular/core'; +import { Component, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChange, OnInit } from '@angular/core'; -import {InfoWindowManager} from '../services/managers/info-window-manager'; +import { InfoWindowManager } from '../services/managers/info-window-manager'; -import {SebmGoogleMapMarker} from './google-map-marker'; +import { SebmGoogleMapMarker } from './google-map-marker'; let infoWindowId = 0; @@ -11,8 +11,8 @@ let infoWindowId = 0; * * ### Example * ```typescript - * import {Component} from 'angular2/core'; - * import {SebmGoogleMap, SebmGoogleMapMarker, SebmGoogleMapInfoWindow} from + * import { Component } from 'angular2/core'; + * import { SebmGoogleMap, SebmGoogleMapMarker, SebmGoogleMapInfoWindow } from * 'angular2-google-maps/core'; * * @Component({ @@ -44,7 +44,7 @@ let infoWindowId = 0; ` }) -export class SebmGoogleMapInfoWindow implements OnDestroy, OnChanges { +export class SebmGoogleMapInfoWindow implements OnDestroy, OnChanges, OnInit { /** * The latitude position of the info window (only usefull if you use it ouside of a {@link * SebmGoogleMapMarker}). diff --git a/src/core/directives/google-map-marker.ts b/src/core/directives/google-map-marker.ts index 2b57e9ad0..71c779c9d 100644 --- a/src/core/directives/google-map-marker.ts +++ b/src/core/directives/google-map-marker.ts @@ -1,11 +1,11 @@ -import {AfterContentInit, ContentChild, Directive, EventEmitter, OnChanges, OnDestroy, SimpleChange} from '@angular/core'; -import {Subscription} from 'rxjs/Subscription'; +import { AfterContentInit, ContentChild, Directive, EventEmitter, OnChanges, OnDestroy, SimpleChange } from '@angular/core'; +import { Subscription } from 'rxjs/Subscription'; -import {MouseEvent} from '../map-types'; +import { MouseEvent } from '../map-types'; import * as mapTypes from '../services/google-maps-types'; -import {MarkerManager} from '../services/managers/marker-manager'; +import { MarkerManager } from '../services/managers/marker-manager'; -import {SebmGoogleMapInfoWindow} from './google-map-info-window'; +import { SebmGoogleMapInfoWindow } from './google-map-info-window'; let markerId = 0; @@ -14,8 +14,8 @@ let markerId = 0; * * ### Example * ```typescript - * import {Component} from 'angular2/core'; - * import {SebmGoogleMap, SebmGoogleMapMarker} from 'angular2-google-maps/core'; + * import { Component } from 'angular2/core'; + * import { SebmGoogleMap, SebmGoogleMapMarker } from 'angular2-google-maps/core'; * * @Component({ * selector: 'my-map-cmp', diff --git a/src/core/directives/google-map-polygon.ts b/src/core/directives/google-map-polygon.ts index b46621690..c18753563 100644 --- a/src/core/directives/google-map-polygon.ts +++ b/src/core/directives/google-map-polygon.ts @@ -1,16 +1,16 @@ -import {AfterContentInit, Directive, EventEmitter, OnChanges, OnDestroy, SimpleChanges} from '@angular/core'; -import {Subscription} from 'rxjs/Subscription'; +import { AfterContentInit, Directive, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; +import { Subscription } from 'rxjs/Subscription'; -import {LatLng, LatLngLiteral, PolyMouseEvent, PolygonOptions} from '../services/google-maps-types'; -import {PolygonManager} from '../services/managers/polygon-manager'; +import { LatLng, LatLngLiteral, PolyMouseEvent, PolygonOptions } from '../services/google-maps-types'; +import { PolygonManager } from '../services/managers/polygon-manager'; /** * SebmGoogleMapPolygon renders a polygon on a {@link SebmGoogleMap} * * ### Example * ```typescript - * import {Component} from '@angular/core'; - * import {SebmGoogleMap, SebmGooglePolygon, LatLngLiteral} from 'angular2-maps/core'; + * import { Component } from '@angular/core'; + * import { SebmGoogleMap, SebmGooglePolygon, LatLngLiteral } from 'angular2-maps/core'; * * @Component({ * selector: 'my-map-cmp', @@ -55,7 +55,7 @@ import {PolygonManager} from '../services/managers/polygon-manager'; * ``` */ @Directive({ - selector: 'semb-map-polygon', + selector: 'sebm-map-polygon', inputs: [ 'clickable', 'draggable: polyDraggable', diff --git a/src/core/directives/google-map-polyline-point.ts b/src/core/directives/google-map-polyline-point.ts index 1bca310ba..b5ff3b42b 100644 --- a/src/core/directives/google-map-polyline-point.ts +++ b/src/core/directives/google-map-polyline-point.ts @@ -1,5 +1,5 @@ -import {Directive, EventEmitter, Input, OnChanges, Output, SimpleChanges} from '@angular/core'; -import {LatLngLiteral} from '../../core/services/google-maps-types'; +import { Directive, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core'; +import { LatLngLiteral } from '../../core/services/google-maps-types'; /** * SebmGoogleMapPolylinePoint represents one element of a polyline within a {@link diff --git a/src/core/directives/google-map-polyline.ts b/src/core/directives/google-map-polyline.ts index 0488920fe..b1bf329e2 100644 --- a/src/core/directives/google-map-polyline.ts +++ b/src/core/directives/google-map-polyline.ts @@ -1,10 +1,10 @@ -import {AfterContentInit, ContentChildren, Directive, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges} from '@angular/core'; -import {Subscription} from 'rxjs/Subscription'; +import { AfterContentInit, ContentChildren, Directive, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core'; +import { Subscription } from 'rxjs/Subscription'; -import {PolyMouseEvent} from '../services/google-maps-types'; -import {PolylineManager} from '../services/managers/polyline-manager'; +import { PolyMouseEvent } from '../services/google-maps-types'; +import { PolylineManager } from '../services/managers/polyline-manager'; -import {SebmGoogleMapPolylinePoint} from './google-map-polyline-point'; +import { SebmGoogleMapPolylinePoint } from './google-map-polyline-point'; let polylineId = 0; /** @@ -12,8 +12,8 @@ let polylineId = 0; * * ### Example * ```typescript - * import {Component} from 'angular2/core'; - * import {SebmGoogleMap, SebmGooglePolyline, SebmGooglePolylinePoint} from + * import { Component } from 'angular2/core'; + * import { SebmGoogleMap, SebmGooglePolyline, SebmGooglePolylinePoint } from * 'angular2-google-maps/core'; * * @Component({ diff --git a/src/core/directives/google-map.ts b/src/core/directives/google-map.ts index d10047fc7..9dedb833d 100644 --- a/src/core/directives/google-map.ts +++ b/src/core/directives/google-map.ts @@ -1,15 +1,15 @@ -import {Component, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChange} from '@angular/core'; -import {Subscription} from 'rxjs/Subscription'; - -import {MouseEvent} from '../map-types'; -import {GoogleMapsAPIWrapper} from '../services/google-maps-api-wrapper'; -import {LatLng, LatLngLiteral} from '../services/google-maps-types'; -import {LatLngBounds, LatLngBoundsLiteral, MapTypeStyle} from '../services/google-maps-types'; -import {CircleManager} from '../services/managers/circle-manager'; -import {InfoWindowManager} from '../services/managers/info-window-manager'; -import {MarkerManager} from '../services/managers/marker-manager'; -import {PolygonManager} from '../services/managers/polygon-manager'; -import {PolylineManager} from '../services/managers/polyline-manager'; +import { Component, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChange, OnDestroy } from '@angular/core'; +import { Subscription } from 'rxjs/Subscription'; + +import { MouseEvent } from '../map-types'; +import { GoogleMapsAPIWrapper } from '../services/google-maps-api-wrapper'; +import { LatLng, LatLngLiteral } from '../services/google-maps-types'; +import { LatLngBounds, LatLngBoundsLiteral, MapTypeStyle } from '../services/google-maps-types'; +import { CircleManager } from '../services/managers/circle-manager'; +import { InfoWindowManager } from '../services/managers/info-window-manager'; +import { MarkerManager } from '../services/managers/marker-manager'; +import { PolygonManager } from '../services/managers/polygon-manager'; +import { PolylineManager } from '../services/managers/polyline-manager'; /** * SebMGoogleMap renders a Google Map. @@ -18,8 +18,8 @@ import {PolylineManager} from '../services/managers/polyline-manager'; * * ### Example * ```typescript - * import {Component} from '@angular/core'; - * import {SebmGoogleMap} from 'angular2-google-maps/core'; + * import { Component } from '@angular/core'; + * import { SebmGoogleMap } from 'angular2-google-maps/core'; * * @Component({ * selector: 'my-map-cmp', @@ -68,7 +68,7 @@ import {PolylineManager} from '../services/managers/polyline-manager'; ` }) -export class SebmGoogleMap implements OnChanges, OnInit { +export class SebmGoogleMap implements OnChanges, OnInit, OnDestroy { /** * The longitude that defines the center of the map. */ diff --git a/src/core/map-types.ts b/src/core/map-types.ts index ad59c50e6..f69b468a6 100644 --- a/src/core/map-types.ts +++ b/src/core/map-types.ts @@ -1,4 +1,4 @@ -import {LatLngLiteral} from './services/google-maps-types'; +import { LatLngLiteral } from './services/google-maps-types'; // exported map types export {LatLngBounds, LatLngBoundsLiteral, LatLngLiteral, PolyMouseEvent} from './services/google-maps-types'; diff --git a/src/core/services/google-maps-api-wrapper.ts b/src/core/services/google-maps-api-wrapper.ts index 35d334da5..5de6f8ef3 100644 --- a/src/core/services/google-maps-api-wrapper.ts +++ b/src/core/services/google-maps-api-wrapper.ts @@ -1,11 +1,11 @@ -import {Injectable, NgZone} from '@angular/core'; -import {Observable} from 'rxjs/Observable'; -import {Observer} from 'rxjs/Observer'; +import { Injectable, NgZone } from '@angular/core'; +import { Observable } from 'rxjs/Observable'; +import { Observer } from 'rxjs/Observer'; import * as mapTypes from './google-maps-types'; -import {Polyline} from './google-maps-types'; -import {PolylineOptions} from './google-maps-types'; -import {MapsAPILoader} from './maps-api-loader/maps-api-loader'; +import { Polyline } from './google-maps-types'; +import { PolylineOptions } from './google-maps-types'; +import { MapsAPILoader } from './maps-api-loader/maps-api-loader'; // todo: add types for this declare var google: any; diff --git a/src/core/services/managers/circle-manager.ts b/src/core/services/managers/circle-manager.ts index 1793f587b..3ddf61187 100644 --- a/src/core/services/managers/circle-manager.ts +++ b/src/core/services/managers/circle-manager.ts @@ -1,10 +1,10 @@ -import {Injectable, NgZone} from '@angular/core'; +import { Injectable, NgZone } from '@angular/core'; -import {Observable} from 'rxjs/Observable'; -import {Observer} from 'rxjs/Observer'; +import { Observable } from 'rxjs/Observable'; +import { Observer } from 'rxjs/Observer'; -import {SebmGoogleMapCircle} from '../../directives/google-map-circle'; -import {GoogleMapsAPIWrapper} from '../google-maps-api-wrapper'; +import { SebmGoogleMapCircle } from '../../directives/google-map-circle'; +import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper'; import * as mapTypes from '../google-maps-types'; @Injectable() diff --git a/src/core/services/managers/info-window-manager.ts b/src/core/services/managers/info-window-manager.ts index 59e2177d9..56f62018c 100644 --- a/src/core/services/managers/info-window-manager.ts +++ b/src/core/services/managers/info-window-manager.ts @@ -1,10 +1,10 @@ -import {Injectable, NgZone} from '@angular/core'; +import { Injectable, NgZone } from '@angular/core'; -import {SebmGoogleMapInfoWindow} from '../../directives/google-map-info-window'; +import { SebmGoogleMapInfoWindow } from '../../directives/google-map-info-window'; -import {GoogleMapsAPIWrapper} from '../google-maps-api-wrapper'; -import {InfoWindow, InfoWindowOptions} from '../google-maps-types'; -import {MarkerManager} from './marker-manager'; +import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper'; +import { InfoWindow, InfoWindowOptions } from '../google-maps-types'; +import { MarkerManager } from './marker-manager'; @Injectable() export class InfoWindowManager { diff --git a/src/core/services/managers/marker-manager.spec.ts b/src/core/services/managers/marker-manager.spec.ts index 772a43ee2..c78dc96b1 100644 --- a/src/core/services/managers/marker-manager.spec.ts +++ b/src/core/services/managers/marker-manager.spec.ts @@ -1,10 +1,10 @@ -import {NgZone} from '@angular/core'; -import {TestBed, async, inject} from '@angular/core/testing'; +import { NgZone } from '@angular/core'; +import { TestBed, async, inject } from '@angular/core/testing'; -import {SebmGoogleMapMarker} from './../../directives/google-map-marker'; -import {GoogleMapsAPIWrapper} from './../google-maps-api-wrapper'; -import {Marker} from './../google-maps-types'; -import {MarkerManager} from './../managers/marker-manager'; +import { SebmGoogleMapMarker } from './../../directives/google-map-marker'; +import { GoogleMapsAPIWrapper } from './../google-maps-api-wrapper'; +import { Marker } from './../google-maps-types'; +import { MarkerManager } from './../managers/marker-manager'; describe('MarkerManager', () => { beforeEach(() => { diff --git a/src/core/services/managers/marker-manager.ts b/src/core/services/managers/marker-manager.ts index 4756c55f1..c86d2765d 100644 --- a/src/core/services/managers/marker-manager.ts +++ b/src/core/services/managers/marker-manager.ts @@ -1,11 +1,11 @@ -import {Injectable, NgZone} from '@angular/core'; -import {Observable} from 'rxjs/Observable'; -import {Observer} from 'rxjs/Observer'; +import { Injectable, NgZone } from '@angular/core'; +import { Observable } from 'rxjs/Observable'; +import { Observer } from 'rxjs/Observer'; -import {SebmGoogleMapMarker} from './../../directives/google-map-marker'; +import { SebmGoogleMapMarker } from './../../directives/google-map-marker'; -import {GoogleMapsAPIWrapper} from './../google-maps-api-wrapper'; -import {Marker} from './../google-maps-types'; +import { GoogleMapsAPIWrapper } from './../google-maps-api-wrapper'; +import { Marker } from './../google-maps-types'; @Injectable() export class MarkerManager { diff --git a/src/core/services/managers/polygon-manager.spec.ts b/src/core/services/managers/polygon-manager.spec.ts index badd2951a..7f35edea1 100644 --- a/src/core/services/managers/polygon-manager.spec.ts +++ b/src/core/services/managers/polygon-manager.spec.ts @@ -1,10 +1,10 @@ -import {NgZone} from '@angular/core'; -import {TestBed, inject} from '@angular/core/testing'; +import { NgZone } from '@angular/core'; +import { TestBed, inject } from '@angular/core/testing'; -import {SebmGoogleMapPolygon} from '../../directives/google-map-polygon'; -import {GoogleMapsAPIWrapper} from '../google-maps-api-wrapper'; -import {Polygon} from '../google-maps-types'; -import {PolygonManager} from './polygon-manager'; +import { SebmGoogleMapPolygon } from '../../directives/google-map-polygon'; +import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper'; +import { Polygon } from '../google-maps-types'; +import { PolygonManager } from './polygon-manager'; describe('PolygonManager', () => { beforeEach(() => { diff --git a/src/core/services/managers/polygon-manager.ts b/src/core/services/managers/polygon-manager.ts index 500ebb641..625236e42 100644 --- a/src/core/services/managers/polygon-manager.ts +++ b/src/core/services/managers/polygon-manager.ts @@ -1,10 +1,10 @@ -import {Injectable, NgZone} from '@angular/core'; -import {Observable} from 'rxjs/Observable'; -import {Observer} from 'rxjs/Observer'; +import { Injectable, NgZone } from '@angular/core'; +import { Observable } from 'rxjs/Observable'; +import { Observer } from 'rxjs/Observer'; -import {SebmGoogleMapPolygon} from '../../directives/google-map-polygon'; -import {GoogleMapsAPIWrapper} from '../google-maps-api-wrapper'; -import {Polygon} from '../google-maps-types'; +import { SebmGoogleMapPolygon } from '../../directives/google-map-polygon'; +import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper'; +import { Polygon } from '../google-maps-types'; @Injectable() export class PolygonManager { diff --git a/src/core/services/managers/polyline-manager.spec.ts b/src/core/services/managers/polyline-manager.spec.ts index 5decfae6a..2735a9dd8 100644 --- a/src/core/services/managers/polyline-manager.spec.ts +++ b/src/core/services/managers/polyline-manager.spec.ts @@ -1,10 +1,10 @@ -import {NgZone} from '@angular/core'; -import {TestBed, inject} from '@angular/core/testing'; +import { NgZone } from '@angular/core'; +import { TestBed, inject } from '@angular/core/testing'; -import {SebmGoogleMapPolyline} from '../../directives/google-map-polyline'; -import {GoogleMapsAPIWrapper} from '../../services/google-maps-api-wrapper'; -import {Polyline} from '../../services/google-maps-types'; -import {PolylineManager} from '../../services/managers/polyline-manager'; +import { SebmGoogleMapPolyline } from '../../directives/google-map-polyline'; +import { GoogleMapsAPIWrapper } from '../../services/google-maps-api-wrapper'; +import { Polyline } from '../../services/google-maps-types'; +import { PolylineManager } from '../../services/managers/polyline-manager'; describe('PolylineManager', () => { beforeEach(() => { diff --git a/src/core/services/managers/polyline-manager.ts b/src/core/services/managers/polyline-manager.ts index 8c409e3dd..be7c19ffc 100644 --- a/src/core/services/managers/polyline-manager.ts +++ b/src/core/services/managers/polyline-manager.ts @@ -1,11 +1,11 @@ -import {Injectable, NgZone} from '@angular/core'; -import {Observable} from 'rxjs/Observable'; -import {Observer} from 'rxjs/Observer'; +import { Injectable, NgZone } from '@angular/core'; +import { Observable } from 'rxjs/Observable'; +import { Observer } from 'rxjs/Observer'; -import {SebmGoogleMapPolyline} from '../../directives/google-map-polyline'; -import {SebmGoogleMapPolylinePoint} from '../../directives/google-map-polyline-point'; -import {GoogleMapsAPIWrapper} from '../google-maps-api-wrapper'; -import {LatLngLiteral, Polyline} from '../google-maps-types'; +import { SebmGoogleMapPolyline } from '../../directives/google-map-polyline'; +import { SebmGoogleMapPolylinePoint } from '../../directives/google-map-polyline-point'; +import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper'; +import { LatLngLiteral, Polyline } from '../google-maps-types'; @Injectable() export class PolylineManager { diff --git a/src/core/services/maps-api-loader/lazy-maps-api-loader.spec.ts b/src/core/services/maps-api-loader/lazy-maps-api-loader.spec.ts index 5f3e3b502..a3a666d37 100644 --- a/src/core/services/maps-api-loader/lazy-maps-api-loader.spec.ts +++ b/src/core/services/maps-api-loader/lazy-maps-api-loader.spec.ts @@ -1,9 +1,9 @@ -import {TestBed, inject} from '@angular/core/testing'; +import { TestBed, inject } from '@angular/core/testing'; -import {DocumentRef, WindowRef} from '../../utils/browser-globals'; +import { DocumentRef, WindowRef } from '../../utils/browser-globals'; -import {GoogleMapsScriptProtocol, LAZY_MAPS_API_CONFIG, LazyMapsAPILoader, LazyMapsAPILoaderConfigLiteral} from './lazy-maps-api-loader'; -import {MapsAPILoader} from './maps-api-loader'; +import { GoogleMapsScriptProtocol, LAZY_MAPS_API_CONFIG, LazyMapsAPILoader, LazyMapsAPILoaderConfigLiteral } from './lazy-maps-api-loader'; +import { MapsAPILoader } from './maps-api-loader'; describe('Service: LazyMapsAPILoader', () => { let documentRef: DocumentRef; diff --git a/src/core/services/maps-api-loader/lazy-maps-api-loader.ts b/src/core/services/maps-api-loader/lazy-maps-api-loader.ts index 2fe17aaa0..494559ea3 100644 --- a/src/core/services/maps-api-loader/lazy-maps-api-loader.ts +++ b/src/core/services/maps-api-loader/lazy-maps-api-loader.ts @@ -1,8 +1,8 @@ -import {Inject, Injectable, OpaqueToken} from '@angular/core'; +import { Inject, Injectable, OpaqueToken } from '@angular/core'; -import {DocumentRef, WindowRef} from '../../utils/browser-globals'; +import { DocumentRef, WindowRef } from '../../utils/browser-globals'; -import {MapsAPILoader} from './maps-api-loader'; +import { MapsAPILoader } from './maps-api-loader'; export enum GoogleMapsScriptProtocol { HTTP = 1, diff --git a/src/core/services/maps-api-loader/maps-api-loader.ts b/src/core/services/maps-api-loader/maps-api-loader.ts index 2b6e55552..f533df823 100644 --- a/src/core/services/maps-api-loader/maps-api-loader.ts +++ b/src/core/services/maps-api-loader/maps-api-loader.ts @@ -1,4 +1,4 @@ -import {Injectable} from '@angular/core'; +import { Injectable } from '@angular/core'; @Injectable() export abstract class MapsAPILoader { diff --git a/src/core/services/maps-api-loader/noop-maps-api-loader.ts b/src/core/services/maps-api-loader/noop-maps-api-loader.ts index b550c44c3..469aee584 100644 --- a/src/core/services/maps-api-loader/noop-maps-api-loader.ts +++ b/src/core/services/maps-api-loader/noop-maps-api-loader.ts @@ -1,4 +1,4 @@ -import {MapsAPILoader} from './maps-api-loader'; +import { MapsAPILoader } from './maps-api-loader'; /** * When using the NoOpMapsAPILoader, the Google Maps API must be added to the page via a `