mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
Fixed "prefer-template" lint rule
This commit is contained in:
@@ -58,7 +58,7 @@ async.eachLimit(documents, 20, requestApi, function(err) { });
|
||||
|
||||
// forEachOf* functions. May accept array or object.
|
||||
function forEachOfIterator(item: string, key: string, forEachOfIteratorCallback: any) {
|
||||
console.log("ForEach: item=" + item + ", key=" + key);
|
||||
console.log(`ForEach: item=${item}, key=${key}`);
|
||||
forEachOfIteratorCallback();
|
||||
}
|
||||
async.forEachOf(openFiles, forEachOfIterator, function(err) { });
|
||||
@@ -294,7 +294,7 @@ q.push([{ name: 'baz' }, { name: 'bay' }, { name: 'bax' }], function(err) {
|
||||
});
|
||||
|
||||
q.push<string>({name: 'foo'}, function(err, msg) {
|
||||
console.log('foo finished with a message "' + msg! + '"');
|
||||
console.log(`foo finished with a message "${msg!}"`);
|
||||
});
|
||||
|
||||
q.unshift({ name: 'foo' });
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
"prefer-const": false, // HAS ISSUES
|
||||
"prefer-for-of": false, // HAS ISSUES
|
||||
"prefer-method-signature": false, // HAS ISSUES
|
||||
"prefer-template": false, // HAS ISSUES
|
||||
"unified-signatures": false // HAS ISSUES
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user