refactor: update lint rules

This commit is contained in:
Daniel
2018-09-17 17:09:46 +02:00
parent a7830693af
commit 0c7cfeeeb8
95 changed files with 1603 additions and 994 deletions
@@ -1,5 +1,10 @@
import { Injectable } from '@angular/core';
import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core';
import {
Cordova,
CordovaProperty,
Plugin,
IonicNativePlugin
} from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
/**
@@ -35,7 +40,7 @@ import { Observable } from 'rxjs/Observable';
* );
*
* ```
*
*
* @advanced
*
* Accepted orientation values:
@@ -59,7 +64,6 @@ import { Observable } from 'rxjs/Observable';
})
@Injectable()
export class ScreenOrientation extends IonicNativePlugin {
/**
* Convenience enum for possible orientations
*/
@@ -81,7 +85,9 @@ export class ScreenOrientation extends IonicNativePlugin {
eventObservable: true,
event: 'orientationchange'
})
onChange(): Observable<void> { return; }
onChange(): Observable<void> {
return;
}
/**
* Lock the orientation to the passed value.
@@ -90,18 +96,19 @@ export class ScreenOrientation extends IonicNativePlugin {
* @return {Promise<any>}
*/
@Cordova({ otherPromise: true })
lock(orientation: string): Promise<any> { return; }
lock(orientation: string): Promise<any> {
return;
}
/**
* Unlock and allow all orientations.
*/
@Cordova({ sync: true })
unlock(): void { }
unlock(): void {}
/**
* Get the current orientation of the device.
*/
@CordovaProperty
type: string;
}