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": { "tslint-eslint-rules": {
"version": "4.1.1", "version": "5.4.0",
"resolved": "https://registry.npmjs.org/tslint-eslint-rules/-/tslint-eslint-rules-4.1.1.tgz", "resolved": "https://registry.npmjs.org/tslint-eslint-rules/-/tslint-eslint-rules-5.4.0.tgz",
"integrity": "sha1-fDDniC8mvCdr/5HSOEl1xp2viLo=", "integrity": "sha512-WlSXE+J2vY/VPgIcqQuijMQiel+UtmXS+4nvK4ZzlDiqBfXse8FAvkNnTcYhnQyOTW5KFM+uRRGXxYhFpuBc6w==",
"dev": true, "dev": true,
"requires": { "requires": {
"doctrine": "^0.7.2", "doctrine": "0.7.2",
"tslib": "^1.0.0", "tslib": "1.9.0",
"tsutils": "^1.4.0" "tsutils": "^3.0.0"
}, },
"dependencies": { "dependencies": {
"tsutils": { "tslib": {
"version": "1.9.1", "version": "1.9.0",
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-1.9.1.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz",
"integrity": "sha1-ufmrROVa+WgYMdXyjQrur1x1DLA=", "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==",
"dev": true "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": { "tslint-ionic-rules": {
"version": "0.0.14", "version": "0.0.19",
"resolved": "https://registry.npmjs.org/tslint-ionic-rules/-/tslint-ionic-rules-0.0.14.tgz", "resolved": "https://registry.npmjs.org/tslint-ionic-rules/-/tslint-ionic-rules-0.0.19.tgz",
"integrity": "sha512-phpdO9Gd0Qfi+BpIUGiYC1cx1Jev8J8/lmQp6Gp38HHfnnWxNqbMLoR5WqtqSejFcojPI3e5YFzngYdAtd+1sg==", "integrity": "sha512-myxelwnK9FkR4mG+PnktKZ2DJp1UnX+22MyiC0V8QZc0464X6X63kRQU8vMtpVlazpvbifsXP9yxct2tHBrN4w==",
"dev": true, "dev": true,
"requires": { "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": { "tsutils": {

View File

@ -56,7 +56,7 @@
"ts-jest": "^22.4.6", "ts-jest": "^22.4.6",
"ts-node": "^6.2.0", "ts-node": "^6.2.0",
"tslint": "^5.11.0", "tslint": "^5.11.0",
"tslint-ionic-rules": "0.0.14", "tslint-ionic-rules": "0.0.19",
"typescript": "2.9.2", "typescript": "2.9.2",
"uglifyjs-webpack-plugin": "^2.0.0", "uglifyjs-webpack-plugin": "^2.0.0",
"unminified-webpack-plugin": "^2.0.0", "unminified-webpack-plugin": "^2.0.0",

View File

@ -4,7 +4,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
export interface SiriShortcut { export interface SiriShortcut {
persistentIdentifier: string; persistentIdentifier: string;
title: string; title: string;
userInfo: { [key: string]: string; }; userInfo: { [key: string]: string };
suggestedInvocationPhrase: string; suggestedInvocationPhrase: string;
} }
@ -119,7 +119,7 @@ export class SiriShortcuts extends IonicNativePlugin {
* @return Promise<void> * @return Promise<void>
*/ */
@Cordova() @Cordova()
remove(persistentIdentifiers: string|string[]): Promise<void> { remove(persistentIdentifiers: string | string[]): Promise<void> {
return; return;
} }
@ -137,7 +137,7 @@ export class SiriShortcuts extends IonicNativePlugin {
* @return Promise<SiriShortcut|null> * @return Promise<SiriShortcut|null>
*/ */
@Cordova() @Cordova()
getActivatedShortcut(): Promise<SiriShortcut|null> { getActivatedShortcut(): Promise<SiriShortcut | null> {
return; return;
} }
} }

View File

@ -3,6 +3,22 @@
"rules": { "rules": {
"ordered-imports": false, "ordered-imports": false,
"no-empty": 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
} }
} }