Fixed "prefer-template" lint rule

This commit is contained in:
Dmitri1337
2019-01-16 18:53:31 +02:00
parent edf4a6cf40
commit 5a6bb529e4
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -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' });
-1
View File
@@ -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
}
}