diff --git a/package-lock.json b/package-lock.json index 041a28ef3..9976b3584 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13733,31 +13733,49 @@ } }, "tslint-eslint-rules": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/tslint-eslint-rules/-/tslint-eslint-rules-4.1.1.tgz", - "integrity": "sha1-fDDniC8mvCdr/5HSOEl1xp2viLo=", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/tslint-eslint-rules/-/tslint-eslint-rules-5.4.0.tgz", + "integrity": "sha512-WlSXE+J2vY/VPgIcqQuijMQiel+UtmXS+4nvK4ZzlDiqBfXse8FAvkNnTcYhnQyOTW5KFM+uRRGXxYhFpuBc6w==", "dev": true, "requires": { - "doctrine": "^0.7.2", - "tslib": "^1.0.0", - "tsutils": "^1.4.0" + "doctrine": "0.7.2", + "tslib": "1.9.0", + "tsutils": "^3.0.0" }, "dependencies": { - "tsutils": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-1.9.1.tgz", - "integrity": "sha1-ufmrROVa+WgYMdXyjQrur1x1DLA=", + "tslib": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", + "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", "dev": true + }, + "tsutils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.0.0.tgz", + "integrity": "sha512-LjHBWR0vWAUHWdIAoTjoqi56Kz+FDKBgVEuL+gVPG/Pv7QW5IdaDDeK9Txlr6U0Cmckp5EgCIq1T25qe3J6hyw==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } } } }, "tslint-ionic-rules": { - "version": "0.0.14", - "resolved": "https://registry.npmjs.org/tslint-ionic-rules/-/tslint-ionic-rules-0.0.14.tgz", - "integrity": "sha512-phpdO9Gd0Qfi+BpIUGiYC1cx1Jev8J8/lmQp6Gp38HHfnnWxNqbMLoR5WqtqSejFcojPI3e5YFzngYdAtd+1sg==", + "version": "0.0.19", + "resolved": "https://registry.npmjs.org/tslint-ionic-rules/-/tslint-ionic-rules-0.0.19.tgz", + "integrity": "sha512-myxelwnK9FkR4mG+PnktKZ2DJp1UnX+22MyiC0V8QZc0464X6X63kRQU8vMtpVlazpvbifsXP9yxct2tHBrN4w==", "dev": true, "requires": { - "tslint-eslint-rules": "^4.1.1" + "@types/node": "^10.9.4", + "tslint-eslint-rules": "^5.3.1" + }, + "dependencies": { + "@types/node": { + "version": "10.10.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.10.0.tgz", + "integrity": "sha512-0V36JTaif20jrbTbZeKqnI4R8nLVE8Ah/u9dQT5jIKXjW51/4ipi/B8Xon1ZiEHATYpgLNoBw2LFfdBMoA5Fzg==", + "dev": true + } } }, "tsutils": { diff --git a/package.json b/package.json index 9c534b4c4..73b211553 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "ts-jest": "^22.4.6", "ts-node": "^6.2.0", "tslint": "^5.11.0", - "tslint-ionic-rules": "0.0.14", + "tslint-ionic-rules": "0.0.19", "typescript": "2.9.2", "uglifyjs-webpack-plugin": "^2.0.0", "unminified-webpack-plugin": "^2.0.0", diff --git a/src/@ionic-native/plugins/siri-shortcuts/index.ts b/src/@ionic-native/plugins/siri-shortcuts/index.ts index 32980a15d..b061ff6d5 100644 --- a/src/@ionic-native/plugins/siri-shortcuts/index.ts +++ b/src/@ionic-native/plugins/siri-shortcuts/index.ts @@ -2,15 +2,15 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface SiriShortcut { - persistentIdentifier: string; - title: string; - userInfo: { [key: string]: string; }; - suggestedInvocationPhrase: string; + persistentIdentifier: string; + title: string; + userInfo: { [key: string]: string }; + suggestedInvocationPhrase: string; } export interface SiriShortcutOptions extends SiriShortcut { - isEligibleForSearch?: boolean; - isEligibleForPrediction?: boolean; + isEligibleForSearch?: boolean; + isEligibleForPrediction?: boolean; } /** @@ -81,63 +81,63 @@ export interface SiriShortcutOptions extends SiriShortcut { }) @Injectable() export class SiriShortcuts extends IonicNativePlugin { - /** - * Donate shortcut to Siri - * @param {SiriShortcutOptions} options Options to specify for the donation - * @param {string} options.persistentIdentifier Specify an identifier to uniquely identify the shortcut, in order to be able to remove it - * @param {string} options.title Specify a title for the shortcut, which is visible to the user as the name of the shortcut - * @param {string} options.suggestedInvocationPhrase Specify the phrase to give the user some inspiration on what the shortcut to call - * @param {object} options.userInfo Provide a key-value object that contains information about the shortcut, this will be returned in the getActivatedShortcut method. It is not possible to use the persistentIdentifier key, it is used internally - * @param {boolean} options.isEligibleForSearch This value defaults to true, set this value to make it searchable in Siri - * @param {boolean} options.isEligibleForPrediction This value defaults to true, set this value to set whether the shortcut eligible for prediction - * @return Promise - */ - @Cordova() - donate(options: SiriShortcutOptions): Promise { - return; - } + /** + * Donate shortcut to Siri + * @param {SiriShortcutOptions} options Options to specify for the donation + * @param {string} options.persistentIdentifier Specify an identifier to uniquely identify the shortcut, in order to be able to remove it + * @param {string} options.title Specify a title for the shortcut, which is visible to the user as the name of the shortcut + * @param {string} options.suggestedInvocationPhrase Specify the phrase to give the user some inspiration on what the shortcut to call + * @param {object} options.userInfo Provide a key-value object that contains information about the shortcut, this will be returned in the getActivatedShortcut method. It is not possible to use the persistentIdentifier key, it is used internally + * @param {boolean} options.isEligibleForSearch This value defaults to true, set this value to make it searchable in Siri + * @param {boolean} options.isEligibleForPrediction This value defaults to true, set this value to set whether the shortcut eligible for prediction + * @return Promise + */ + @Cordova() + donate(options: SiriShortcutOptions): Promise { + return; + } - /** - * Present shortcut to the user, will popup a view controller asking the user to add it to Siri - * @param {SiriShortcutOptions} options Options to specify for the donation - * @param {string} options.persistentIdentifier Specify an identifier to uniquely identify the shortcut, in order to be able to remove it - * @param {string} options.title Specify a title for the shortcut, which is visible to the user as the name of the shortcut - * @param {string} options.suggestedInvocationPhrase Specify the phrase to give the user some inspiration on what the shortcut to call - * @param {object} options.userInfo Provide a key-value object that contains information about the shortcut, this will be returned in the getActivatedShortcut method. It is not possible to use the persistentIdentifier key, it is used internally - * @param {boolean} options.isEligibleForSearch This value defaults to true, set this value to make it searchable in Siri - * @param {boolean} options.isEligibleForPrediction This value defaults to true, set this value to set whether the shortcut eligible for prediction - * @return Promise - */ - @Cordova() - present(options: SiriShortcutOptions): Promise { - return; - } + /** + * Present shortcut to the user, will popup a view controller asking the user to add it to Siri + * @param {SiriShortcutOptions} options Options to specify for the donation + * @param {string} options.persistentIdentifier Specify an identifier to uniquely identify the shortcut, in order to be able to remove it + * @param {string} options.title Specify a title for the shortcut, which is visible to the user as the name of the shortcut + * @param {string} options.suggestedInvocationPhrase Specify the phrase to give the user some inspiration on what the shortcut to call + * @param {object} options.userInfo Provide a key-value object that contains information about the shortcut, this will be returned in the getActivatedShortcut method. It is not possible to use the persistentIdentifier key, it is used internally + * @param {boolean} options.isEligibleForSearch This value defaults to true, set this value to make it searchable in Siri + * @param {boolean} options.isEligibleForPrediction This value defaults to true, set this value to set whether the shortcut eligible for prediction + * @return Promise + */ + @Cordova() + present(options: SiriShortcutOptions): Promise { + return; + } - /** - * Remove shortcuts based on identifiers - * @param {string|string[]} persistentIdentifiers Specify which shortcut(s) to delete by their persistent identifiers - * @return Promise - */ - @Cordova() - remove(persistentIdentifiers: string|string[]): Promise { - return; - } + /** + * Remove shortcuts based on identifiers + * @param {string|string[]} persistentIdentifiers Specify which shortcut(s) to delete by their persistent identifiers + * @return Promise + */ + @Cordova() + remove(persistentIdentifiers: string | string[]): Promise { + return; + } - /** - * Remove all shortcuts from the application - * @return Promise - */ - @Cordova() - removeAll(): Promise { - return; - } + /** + * Remove all shortcuts from the application + * @return Promise + */ + @Cordova() + removeAll(): Promise { + return; + } - /** - * Get the current clicked user activity, and return `null` if none - * @return Promise - */ - @Cordova() - getActivatedShortcut(): Promise { - return; - } + /** + * Get the current clicked user activity, and return `null` if none + * @return Promise + */ + @Cordova() + getActivatedShortcut(): Promise { + return; + } } diff --git a/tslint.json b/tslint.json index f2c3e3887..85b11d076 100644 --- a/tslint.json +++ b/tslint.json @@ -3,6 +3,22 @@ "rules": { "ordered-imports": false, "no-empty": false, - "no-import-side-effect": false + "no-import-side-effect": false, + "no-redundant-jsdoc": false, + // TODO: Activate rules step by step + "array-type": false, + "ban-types": false, + "no-shadowed-variable": false, + "only-arrow-functions": false, + "ter-no-proto": false, + "space-before-function-paren": false, + "callable-types": false, + "member-access": false, + "adjacent-overload-signatures": false, + "no-angle-bracket-type-assertion": false, + "space-within-parens": false, + "no-irregular-whitespace": false, + "no-duplicate-imports": false, + "no-constant-condition": false } }