fix linting errors
This commit is contained in:
parent
776c508418
commit
75330304dc
@ -71,7 +71,7 @@ export function _ForOfStatementArray(node, scope, file) {
|
||||
}
|
||||
|
||||
if (this.parentPath.isLabeledStatement()) {
|
||||
loop = t.labeledStatement(this.parentPath.node.label, loop)
|
||||
loop = t.labeledStatement(this.parentPath.node.label, loop);
|
||||
}
|
||||
|
||||
nodes.push(loop);
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import isNumber from "lodash/lang/isNumber";
|
||||
import * as util from "../../../util";
|
||||
import * as t from "../../../types";
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ export function removeTypeDuplicates(nodes) {
|
||||
|
||||
// find a matching generic type and merge and deduplicate the type parameters
|
||||
if (t.isGenericTypeAnnotation(node)) {
|
||||
var name = node.id.name;
|
||||
let name = node.id.name;
|
||||
|
||||
if (generics[name]) {
|
||||
var existing = generics[name];
|
||||
@ -74,7 +74,7 @@ export function removeTypeDuplicates(nodes) {
|
||||
}
|
||||
|
||||
// add back in generics
|
||||
for (var name in generics) {
|
||||
for (let name in generics) {
|
||||
types.push(generics[name]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user