From aec0a682b55256985bf445ea0ba9299e8c5b62aa Mon Sep 17 00:00:00 2001 From: Guan Gui Date: Mon, 27 Feb 2017 22:14:09 +1100 Subject: [PATCH] Fixed JS Beautify JSX bug by adding e4x option --- package.json | 2 +- src/languages/jsx.coffee | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a91d8a9..df5b064 100644 --- a/package.json +++ b/package.json @@ -305,4 +305,4 @@ "lint": "coffeelint src/ spec/", "code-docs": "codo && open docs/code/index.html" } -} +} \ No newline at end of file diff --git a/src/languages/jsx.coffee b/src/languages/jsx.coffee index 6c26e95..cf67710 100644 --- a/src/languages/jsx.coffee +++ b/src/languages/jsx.coffee @@ -22,6 +22,12 @@ module.exports = { "js" ] - defaultBeautifier: "Pretty Diff" + defaultBeautifier: "JS Beautify" + + options: + e4x: + type: 'boolean' + default: true + description: "Support e4x/jsx syntax" }