From 236ad309ba463b1d19f536dcb72c4eb24f24988a Mon Sep 17 00:00:00 2001 From: Glavin Wiechert Date: Thu, 29 Dec 2016 21:27:06 -0400 Subject: [PATCH] Set Pretty Diff as default beautifier for JSX --- README.md | 2 +- docs/options.md | 2 +- src/languages/jsx.coffee | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 88d7b69..bc400b2 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ See [all supported options in the documentation at `docs/options.md`](docs/opti | Java | `Java` |`.java` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) | | JavaScript | `JavaScript` |`.js` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`JSCS Fixer`](https://github.com/jscs-dev/node-jscs/), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) | | JSON | `JSON` |`.json` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) | -| JSX | `JSX`, `JavaScript (JSX)`, `Babel ES6 JavaScript` |`.jsx`, `.js` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) | +| JSX | `JSX`, `JavaScript (JSX)`, `Babel ES6 JavaScript`, `JavaScript with JSX` |`.jsx`, `.js` | [`JS Beautify`](https://github.com/beautify-web/js-beautify), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) | | LaTeX | `LaTeX` |`.tex` | [`Latex Beautify`](https://github.com/cmhughes/latexindent.pl) (Default) | | LESS | `LESS` |`.less` | [`CSScomb`](https://github.com/csscomb/csscomb.js), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) | | Lua | `Lua` |`.lua` | [`Lua beautifier`](https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/lua-beautifier/beautifier.pl) (Default) | diff --git a/docs/options.md b/docs/options.md index 4d694fb..a06d860 100644 --- a/docs/options.md +++ b/docs/options.md @@ -6131,7 +6131,7 @@ Disable JSX Beautification **Important**: This option is only configurable from within Atom Beautify's setting panel. -**Default**: `JS Beautify` +**Default**: `Pretty Diff` **Type**: `string` diff --git a/src/languages/jsx.coffee b/src/languages/jsx.coffee index a038c59..6c26e95 100644 --- a/src/languages/jsx.coffee +++ b/src/languages/jsx.coffee @@ -22,4 +22,6 @@ module.exports = { "js" ] + defaultBeautifier: "Pretty Diff" + }