chore(package): update ionic-lint-rules

This commit is contained in:
Daniel 2018-09-17 15:37:05 +02:00
parent 6c18a8bc4f
commit f2c8edecc4
4 changed files with 111 additions and 77 deletions

46
package-lock.json generated
View File

@ -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": {

View File

@ -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",

View File

@ -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<void>
*/
@Cordova()
donate(options: SiriShortcutOptions): Promise<void> {
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<void>
*/
@Cordova()
donate(options: SiriShortcutOptions): Promise<void> {
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<void>
*/
@Cordova()
present(options: SiriShortcutOptions): Promise<void> {
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<void>
*/
@Cordova()
present(options: SiriShortcutOptions): Promise<void> {
return;
}
/**
* Remove shortcuts based on identifiers
* @param {string|string[]} persistentIdentifiers Specify which shortcut(s) to delete by their persistent identifiers
* @return Promise<void>
*/
@Cordova()
remove(persistentIdentifiers: string|string[]): Promise<void> {
return;
}
/**
* Remove shortcuts based on identifiers
* @param {string|string[]} persistentIdentifiers Specify which shortcut(s) to delete by their persistent identifiers
* @return Promise<void>
*/
@Cordova()
remove(persistentIdentifiers: string | string[]): Promise<void> {
return;
}
/**
* Remove all shortcuts from the application
* @return Promise<void>
*/
@Cordova()
removeAll(): Promise<void> {
return;
}
/**
* Remove all shortcuts from the application
* @return Promise<void>
*/
@Cordova()
removeAll(): Promise<void> {
return;
}
/**
* Get the current clicked user activity, and return `null` if none
* @return Promise<SiriShortcut|null>
*/
@Cordova()
getActivatedShortcut(): Promise<SiriShortcut|null> {
return;
}
/**
* Get the current clicked user activity, and return `null` if none
* @return Promise<SiriShortcut|null>
*/
@Cordova()
getActivatedShortcut(): Promise<SiriShortcut | null> {
return;
}
}

View File

@ -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
}
}