From 5146b08c03197fc557c466f90e148a4d8fb90d58 Mon Sep 17 00:00:00 2001 From: Dmitri1337 Date: Wed, 16 Jan 2019 19:11:05 +0200 Subject: [PATCH] Fixed "prefer-for-of" 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 e30ef8971c..1190e116a5 100644 --- a/types/async/test/index.ts +++ b/types/async/test/index.ts @@ -374,8 +374,8 @@ aq.push(1, function(err: Error, newLevel: number) { // create a cargo object with payload 2 const cargo = async.cargo(function(tasks, callback) { - for (var i = 0; i < tasks.length; i++) { - console.log('hello ' + tasks[i].name); + for (const task of tasks) { + console.log('hello ' + task.name); } callback(); }, 2); diff --git a/types/async/tslint.json b/types/async/tslint.json index 08dc9769c3..38462966f1 100644 --- a/types/async/tslint.json +++ b/types/async/tslint.json @@ -14,7 +14,6 @@ "object-literal-shorthand": false, // HAS ISSUES "one-variable-per-declaration": false, // HAS ISSUES "only-arrow-functions": false, // HAS ISSUES - "prefer-for-of": false, // HAS ISSUES "prefer-method-signature": false, // HAS ISSUES "unified-signatures": false // HAS ISSUES }