Switch to klint, fix some lint rules

This commit is contained in:
Sebastian McKenzie
2016-02-14 23:25:14 +00:00
parent 13cb34a966
commit c9f9435445
11 changed files with 26 additions and 7 deletions

View File

@@ -1,3 +1,6 @@
/* eslint indent: 0 */
/* eslint max-len: 0 */
import { types as tt } from "../tokenizer/types";
import Parser from "../parser";
@@ -115,8 +118,7 @@ pp.flowParseDeclareInterface = function (node) {
this.next();
this.flowParseInterfaceish(node);
return this.finishNode(node, "DeclareInterface");
}
};
// Interfaces
@@ -920,7 +922,7 @@ export default function (instance) {
node.typeParameters = null;
}
implemented.push(this.finishNode(node, "ClassImplements"));
} while (this.eat(tt.comma))
} while (this.eat(tt.comma));
}
};
});

View File

@@ -1,3 +1,5 @@
/* eslint indent: 0 */
import XHTMLEntities from "./xhtml";
import { TokenType, types as tt } from "../../tokenizer/types";
import { TokContext, types as tc } from "../../tokenizer/context";