From f8d93098e233c6a54a33dfba4caed5611323a384 Mon Sep 17 00:00:00 2001 From: segayuu Date: Tue, 7 Nov 2017 12:21:14 +0900 Subject: [PATCH] cleanup ignore format lint errors: comment-format, eofline, no-consecutive-blank-lines, no-padding, semicolon, space-within-parens, typedef-whitespace, whitespace --- types/bluebird-retry/bluebird-retry-tests.ts | 13 ++++++------- types/bluebird-retry/index.d.ts | 1 - types/bluebird-retry/tslint.json | 10 +--------- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/types/bluebird-retry/bluebird-retry-tests.ts b/types/bluebird-retry/bluebird-retry-tests.ts index eb3260a007..ce094918f9 100644 --- a/types/bluebird-retry/bluebird-retry-tests.ts +++ b/types/bluebird-retry/bluebird-retry-tests.ts @@ -1,9 +1,9 @@ import Promise = require('bluebird'); import retry = require('bluebird-retry'); -function promiseSuccess(text:string) { +function promiseSuccess(text: string) { return Promise.resolve(text); -}; +} var count = 0; function myfunc() { @@ -16,18 +16,17 @@ function myfunc() { } retry(myfunc) - .done(function(result) { console.log(result); } ); + .done(function(result) { console.log(result); }); - -//Options example +// Options example function logFail() { console.log(new Date().toISOString()); throw new Error('bail'); } -var options:retry.Options = { +var options: retry.Options = { max_tries: 4, interval: 500 }; -retry(logFail, options); \ No newline at end of file +retry(logFail, options); diff --git a/types/bluebird-retry/index.d.ts b/types/bluebird-retry/index.d.ts index 97d756524b..c6f66a11ee 100644 --- a/types/bluebird-retry/index.d.ts +++ b/types/bluebird-retry/index.d.ts @@ -22,7 +22,6 @@ declare namespace retry { context?: any; args?: any; } - } export = retry; diff --git a/types/bluebird-retry/tslint.json b/types/bluebird-retry/tslint.json index 6994644fac..9a40f717d9 100644 --- a/types/bluebird-retry/tslint.json +++ b/types/bluebird-retry/tslint.json @@ -1,20 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { - "comment-format": false, "dt-header": false, - "eofline": false, - "no-consecutive-blank-lines": false, - "no-padding": false, "no-reference-import": false, "no-var-keyword": false, "only-arrow-functions": false, "prefer-const": false, "prefer-template": false, - "semicolon": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "typedef-whitespace": false, - "whitespace": false + "strict-export-declare-modifiers": false } }