Skip to content

Commit

Permalink
Bump jsbeautify to 1.6.2. Add support for collapse-preserve-inline br…
Browse files Browse the repository at this point in the history
…ace_style for javascript.
  • Loading branch information
Luis Arias committed Feb 3, 2016
1 parent dce087c commit 89f1d69
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Add [elm-format](https://github.com/avh4/elm-format) beautifier for the Elm language.
- Add [clang-format](http://clang.llvm.org/docs/ClangFormat.html) beautifier for C/C++/Obj-C languages.
- Add [yapf](http://github.com/google/yapf) beautifier for Python.
- Closes [#776] (https://github.com/Glavin001/atom-beautify/issues/776) Add support for `collapse-preserve-inline` brace_style for javascript.

# v0.29.0
- Closes [#447](https://github.com/Glavin001/atom-beautify/issues/447). Improved Handlebars language support
Expand Down
8 changes: 4 additions & 4 deletions docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -1311,13 +1311,13 @@ Add a space before an anonymous function's parens, ie. function () (Supported by

**Type**: `string`

**Enum**: `collapse` `expand` `end-expand` `none`
**Enum**: `collapse` `collapse-preserve-inline` `expand` `end-expand` `none`

**Supported Beautifiers**: [`JS Beautify`](#js-beautify)

**Description**:

[collapse|expand|end-expand|none] (Supported by JS Beautify)
[collapse|collapse-preserve-inline|expand|end-expand|none] (Supported by JS Beautify)

**Example `.jsbeautifyrc` Configuration**

Expand Down Expand Up @@ -5470,13 +5470,13 @@ Add a space before an anonymous function's parens, ie. function () (Supported by

**Type**: `string`

**Enum**: `collapse` `expand` `end-expand` `none`
**Enum**: `collapse` `collapse-preserve-inline` `expand` `end-expand` `none`

**Supported Beautifiers**: [`JS Beautify`](#js-beautify)

**Description**:

[collapse|expand|end-expand|none] (Supported by JS Beautify)
[collapse|collapse-preserve-inline|expand|end-expand|none] (Supported by JS Beautify)

**Example `.jsbeautifyrc` Configuration**

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
{
"name": "Murphy Randle",
"url": "https://github.com/splodingsocks"
},
{
"name": "Luis Arias",
"url": "https://github.com/kaaloo"
}
],
"engines": {
Expand All @@ -84,7 +88,7 @@
"extend": "^3.0.0",
"gherkin": "2.12.2",
"handlebars": "^4.0.2",
"js-beautify": "^1.5.10",
"js-beautify": "^1.6.2",
"jscs": "^2.1.1",
"lodash": "3.10.1",
"loophole": "^1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/languages/javascript.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ module.exports = {
brace_style:
type: 'string'
default: "collapse"
enum: ["collapse", "expand", "end-expand", "none"]
description: "[collapse|expand|end-expand|none]"
enum: ["collapse", "collapse-preserve-inline", "expand", "end-expand", "none"]
description: "[collapse|collapse-preserve-inline|expand|end-expand|none]"
break_chained_methods:
type: 'boolean'
default: false
Expand Down

0 comments on commit 89f1d69

Please sign in to comment.