From 5a6bb529e48a486244d33246b11568c5bddb306b Mon Sep 17 00:00:00 2001 From: Dmitri1337 Date: Wed, 16 Jan 2019 18:53:31 +0200 Subject: [PATCH] Fixed "prefer-template" lint rule --- types/async/test/index.ts | 4 ++-- types/async/tslint.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/types/async/test/index.ts b/types/async/test/index.ts index 71406a793f..d5915ed6f0 100644 --- a/types/async/test/index.ts +++ b/types/async/test/index.ts @@ -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({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' }); diff --git a/types/async/tslint.json b/types/async/tslint.json index 8c1a002a64..35058f4fc8 100644 --- a/types/async/tslint.json +++ b/types/async/tslint.json @@ -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 } }