cleanup ignore format lint errors: comment-format, eofline, no-consecutive-blank-lines, no-padding, semicolon, space-within-parens, typedef-whitespace, whitespace

This commit is contained in:
segayuu
2017-11-07 12:21:14 +09:00
parent 05735d2abf
commit f8d93098e2
3 changed files with 7 additions and 17 deletions
+6 -7
View File
@@ -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);
retry(logFail, options);
-1
View File
@@ -22,7 +22,6 @@ declare namespace retry {
context?: any;
args?: any;
}
}
export = retry;
+1 -9
View File
@@ -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
}
}