mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Fixed "prefer-for-of" lint rule
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user