Skip to content

Commit

Permalink
Merge pull request #779 from kaaloo/collapse-preserve-inline
Browse files Browse the repository at this point in the history
[#776] Bump jsbeautify to 1.6.2.  Add support for collapse-preserve-inline
  • Loading branch information
Glavin001 committed Feb 20, 2016
2 parents e43952c + 89f1d69 commit 42a747c
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 @@ -5673,13 +5673,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 42a747c

Please sign in to comment.