Fixed "prefer-for-of" lint rule

This commit is contained in:
Dmitri1337
2019-01-16 19:11:05 +02:00
parent e3dd4b2ca4
commit 5146b08c03
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -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);
-1
View File
@@ -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
}