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 }