From 03414d64cc6bdb95735abe8cd062bdf37b52c133 Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Wed, 11 Jan 2017 22:39:32 +0800 Subject: [PATCH] Add newline to EOF. Closes #55. --- src/printer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/printer.js b/src/printer.js index 0bba17879..144dee928 100644 --- a/src/printer.js +++ b/src/printer.js @@ -214,6 +214,8 @@ function genericPrintNoParens(path, options, print) { ) ); + parts.push(hardline); + return concat(parts); // Babel extension. case "Noop":