tslint: Enable prefer-for-of

This is not a big deal, but I think it makes the code a bit nicer.
This commit is contained in:
Simon Marchi 2018-07-18 10:56:44 -04:00
commit 186115cf7a
2 changed files with 1 additions and 3 deletions

View file

@ -93,8 +93,7 @@ export class MINode implements MIInfo {
path = path.substr(target[0].length);
if (current.length && typeof current != "string") {
const found = [];
for (let i = 0; i < current.length; i++) {
const element = current[i];
for (const element of current) {
if (element[0] == target[1]) {
found.push(element[1]);
}

View file

@ -32,7 +32,6 @@
"one-variable-per-declaration": false,
"only-arrow-functions": false,
"ordered-imports": false,
"prefer-for-of": false,
"quotemark": false,
"radix": false,
"semicolon": false,