Permalink
Browse files

change "brace_style" default option to "collapse-preserve-inline"

  • Loading branch information...
1 parent 5291639 commit 3cfec8139d83eaeadb63d98f867a91a83063cb0b @laggingreflex laggingreflex committed Feb 12, 2016
Showing with 9 additions and 1 deletion.
  1. +9 −1 .jsbeautifyrc
View
@@ -31,7 +31,15 @@
},
"js": {
"allowed_file_extensions": ["js", "json", "jshintrc", "jsbeautifyrc"],
- "brace_style": "collapse", // [collapse|expand|end-expand|none] Put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are
+
+ // Set brace_style
+ // collapse: (old default) Put braces on the same line as control statements
+ // collapse-preserve-inline: (new default) Same as collapse but better support for ES6 destructuring and other features. https://github.com/victorporof/Sublime-HTMLPrettify/issues/231
+ // expand: Put braces on own line (Allman / ANSI style)
+ // end-expand: Put end braces on own line
+ // none: Keep them where they are
+ "brace_style": "collapse-preserve-inline",
+
"break_chained_methods": false, // Break chained method calls across subsequent lines
"e4x": false, // Pass E4X xml literals through untouched
"end_with_newline": false, // End output with newline

0 comments on commit 3cfec81

Please sign in to comment.