mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
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:
@@ -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);
|
||||
|
||||
Vendored
-1
@@ -22,7 +22,6 @@ declare namespace retry {
|
||||
context?: any;
|
||||
args?: any;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export = retry;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user