diff --git a/lib/babylon-to-espree/toAST.js b/lib/babylon-to-espree/toAST.js index 88349d7c..b3da41f0 100644 --- a/lib/babylon-to-espree/toAST.js +++ b/lib/babylon-to-espree/toAST.js @@ -72,15 +72,6 @@ var astTransformVisitor = { delete node.bound; } - if (path.isTypeAlias()) { - node.type = "FunctionDeclaration"; - node.generator = false; - node.async = false; - node.expression = false; - node.params = []; - node.body = node.right; - } - // flow: prevent "no-undef" // for "Component" in: "let x: React.Component" if (path.isQualifiedTypeIdentifier()) { diff --git a/test/non-regression.js b/test/non-regression.js index 1a24f9d7..4c43b29f 100644 --- a/test/non-regression.js +++ b/test/non-regression.js @@ -1091,18 +1091,6 @@ describe("verify", () => { { "no-unused-vars": 1, "no-undef": 1 } ); }); - - it("cyclic type dependencies should not error #485", () => { - verifyAndAssertMessages( - unpad(` - type Node = { head: T, tail: Node }; - type A = B[]; - type B = number; - `), - { "no-use-before-define": 0 }, - [] - ); - }); }); it("class usage", () => {