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
+11 -10
View File
@@ -2,12 +2,11 @@ import { Injectable } from '@angular/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
/**
* @name Keyboard
* @description
* Keyboard plugin for Cordova.
*
*
* Requires Cordova plugin: `ionic-plugin-keyboard`. For more info, please see the [Keyboard plugin docs](https://github.com/ionic-team/ionic-plugin-keyboard).
*
* @usage
@@ -33,13 +32,12 @@ import { Observable } from 'rxjs/Observable';
})
@Injectable()
export class Keyboard extends IonicNativePlugin {
/**
* Hide the keyboard accessory bar with the next, previous and done buttons.
* @param hide {boolean}
*/
@Cordova({ sync: true })
hideKeyboardAccessoryBar(hide: boolean): void { }
hideKeyboardAccessoryBar(hide: boolean): void {}
/**
* Force keyboard to be shown.
@@ -48,7 +46,7 @@ export class Keyboard extends IonicNativePlugin {
sync: true,
platforms: ['Android', 'BlackBerry 10', 'Windows']
})
show(): void { }
show(): void {}
/**
* Close the keyboard if open.
@@ -57,7 +55,7 @@ export class Keyboard extends IonicNativePlugin {
sync: true,
platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows']
})
close(): void { }
close(): void {}
/**
* Prevents the native UIScrollView from moving when an input is focused.
@@ -67,7 +65,7 @@ export class Keyboard extends IonicNativePlugin {
sync: true,
platforms: ['iOS', 'Windows']
})
disableScroll(disable: boolean): void { }
disableScroll(disable: boolean): void {}
/**
* Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch.
@@ -78,7 +76,9 @@ export class Keyboard extends IonicNativePlugin {
event: 'native.keyboardshow',
platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows']
})
onKeyboardShow(): Observable<any> { return; }
onKeyboardShow(): Observable<any> {
return;
}
/**
* Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch.
@@ -89,6 +89,7 @@ export class Keyboard extends IonicNativePlugin {
event: 'native.keyboardhide',
platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows']
})
onKeyboardHide(): Observable<any> { return; }
onKeyboardHide(): Observable<any> {
return;
}
}