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:
parent
e0ed9f71b8
commit
186115cf7a
2 changed files with 1 additions and 3 deletions
|
|
@ -93,8 +93,7 @@ export class MINode implements MIInfo {
|
||||||
path = path.substr(target[0].length);
|
path = path.substr(target[0].length);
|
||||||
if (current.length && typeof current != "string") {
|
if (current.length && typeof current != "string") {
|
||||||
const found = [];
|
const found = [];
|
||||||
for (let i = 0; i < current.length; i++) {
|
for (const element of current) {
|
||||||
const element = current[i];
|
|
||||||
if (element[0] == target[1]) {
|
if (element[0] == target[1]) {
|
||||||
found.push(element[1]);
|
found.push(element[1]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@
|
||||||
"one-variable-per-declaration": false,
|
"one-variable-per-declaration": false,
|
||||||
"only-arrow-functions": false,
|
"only-arrow-functions": false,
|
||||||
"ordered-imports": false,
|
"ordered-imports": false,
|
||||||
"prefer-for-of": false,
|
|
||||||
"quotemark": false,
|
"quotemark": false,
|
||||||
"radix": false,
|
"radix": false,
|
||||||
"semicolon": false,
|
"semicolon": false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue