From 0b3d299a963d2873375a2d6fb933b5555fc0e5a4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 4 May 2018 10:31:06 +0200 Subject: [PATCH] fix(): fix more lint errors --- src/@ionic-native/plugins/clipboard/index.ts | 8 ++++---- src/@ionic-native/plugins/firebase/index.ts | 5 +---- src/@ionic-native/plugins/star-prnt/index.ts | 16 +++++++--------- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/src/@ionic-native/plugins/clipboard/index.ts b/src/@ionic-native/plugins/clipboard/index.ts index 3e87d787e..495af88e7 100644 --- a/src/@ionic-native/plugins/clipboard/index.ts +++ b/src/@ionic-native/plugins/clipboard/index.ts @@ -26,7 +26,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; * alert('Error: ' + reject); * } * ); - * + * * this.clipboard.clear(); * ``` */ @@ -39,7 +39,6 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Clipboard extends IonicNativePlugin { - /** * Copies the given text * @param {string} text Text that gets copied on the system clipboard @@ -64,6 +63,7 @@ export class Clipboard extends IonicNativePlugin { * @returns {Promise} Returns a promise after the text has been cleaned */ @Cordova() - clear(): Promise { return; } - + clear(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/firebase/index.ts b/src/@ionic-native/plugins/firebase/index.ts index 4bae1124c..ce186f1da 100644 --- a/src/@ionic-native/plugins/firebase/index.ts +++ b/src/@ionic-native/plugins/firebase/index.ts @@ -318,10 +318,7 @@ export class Firebase extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - verifyPhoneNumber( - phoneNumber: string, - timeoutDuration: number = 0 - ): Promise { + verifyPhoneNumber(phoneNumber: string, timeoutDuration = 0): Promise { return; } } diff --git a/src/@ionic-native/plugins/star-prnt/index.ts b/src/@ionic-native/plugins/star-prnt/index.ts index 777e7c936..e22de10c1 100644 --- a/src/@ionic-native/plugins/star-prnt/index.ts +++ b/src/@ionic-native/plugins/star-prnt/index.ts @@ -108,7 +108,6 @@ export interface ImageObj { openCashDrawer?: boolean; } export interface PrintCommand { - /** * Characther encoding is used to getByte data from all subsequent commands. Default 'US-ASCII' * Choose the format of the return value Defined in StarPRNT.Encoding or the Encoding enum. @@ -134,13 +133,13 @@ export interface PrintCommand { appendRaw?: string; /** - * Data (Command) is added to the command buffer. Takes an array of bytes. + * Data (Command) is added to the command buffer. Takes an array of bytes. * Example: {appendBytes:[0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x2e]} */ appendBytes?: Array; /** - * Data (Command) is added to the command buffer. Takes an array of bytes. + * Data (Command) is added to the command buffer. Takes an array of bytes. * Example: {appendRawBytes:[0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x2e]} */ appendRawBytes?: Array; @@ -156,7 +155,7 @@ export interface PrintCommand { appendEmphasis?: string; /** - * Enable emphasis mode is generated and added to the command buffer. Example: {enableEmphasis:true} + * Enable emphasis mode is generated and added to the command buffer. Example: {enableEmphasis:true} */ enableEmphasis?: boolean; @@ -335,7 +334,7 @@ export interface PrintCommand { * Example: {enableMultiple:true, width:2, height:2} * Disable Example: {enableMultiple:false} */ - enableMultiple?: boolean; + enableMultiple?: boolean; /** * Print command of the QR code is generated and added to the command buffer. @@ -420,7 +419,7 @@ export enum Emulation { /** SM-S210i, SM-S220i, SM-S230i, SM-T300i/T300, SM-T400i */ EscPosMobile = 'EscPosMobile', /** SP700 */ - StarDotImpact = 'StarDotImpact', + StarDotImpact = 'StarDotImpact' } /** @@ -651,18 +650,17 @@ export interface CommandsArray extends Array {} }) @Injectable() export class StarPRNT extends IonicNativePlugin { - /** * Constant for Emulation */ - Emulation = { + Emulation = { StarPRNT: 'StarPRNT', StarPRNTL: 'StarPRNTL', StarLine: 'StarLine', StarGraphic: 'StarGraphic', EscPos: 'EscPos', EscPosMobile: 'EscPosMobile', - StarDotImpact: 'StarDotImpact', + StarDotImpact: 'StarDotImpact' }; /**