Merge branch 'master' of https://github.com/hayatae/atom-beautify into hayatae-master
This commit is contained in:
commit
f36a1d15e2
|
@ -1306,11 +1306,11 @@ Add a space before an anonymous function's parens, ie. function () (Supported by
|
||||||
|
|
||||||
**Type**: `boolean`
|
**Type**: `boolean`
|
||||||
|
|
||||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify)
|
**Supported Beautifiers**: [`JS Beautify`](#js-beautify) [`Pretty Diff`](#pretty-diff)
|
||||||
|
|
||||||
**Description**:
|
**Description**:
|
||||||
|
|
||||||
Break chained method calls across subsequent lines (Supported by JS Beautify)
|
Break chained method calls across subsequent lines (Supported by JS Beautify, Pretty Diff)
|
||||||
|
|
||||||
**Example `.jsbeautifyrc` Configuration**
|
**Example `.jsbeautifyrc` Configuration**
|
||||||
|
|
||||||
|
@ -5331,11 +5331,11 @@ Add a space before an anonymous function's parens, ie. function () (Supported by
|
||||||
|
|
||||||
**Type**: `boolean`
|
**Type**: `boolean`
|
||||||
|
|
||||||
**Supported Beautifiers**: [`JS Beautify`](#js-beautify)
|
**Supported Beautifiers**: [`JS Beautify`](#js-beautify) [`Pretty Diff`](#pretty-diff)
|
||||||
|
|
||||||
**Description**:
|
**Description**:
|
||||||
|
|
||||||
Break chained method calls across subsequent lines (Supported by JS Beautify)
|
Break chained method calls across subsequent lines (Supported by JS Beautify, Pretty Diff)
|
||||||
|
|
||||||
**Example `.jsbeautifyrc` Configuration**
|
**Example `.jsbeautifyrc` Configuration**
|
||||||
|
|
||||||
|
@ -6000,6 +6000,30 @@ Add a space before an anonymous function's parens, ie. function () (Supported by
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### [JavaScript - Break chained methods](#javascript---break-chained-methods)
|
||||||
|
|
||||||
|
**Namespace**: `js`
|
||||||
|
|
||||||
|
**Key**: `break_chained_methods`
|
||||||
|
|
||||||
|
**Type**: `boolean`
|
||||||
|
|
||||||
|
**Supported Beautifiers**: [`JS Beautify`](#js-beautify) [`Pretty Diff`](#pretty-diff)
|
||||||
|
|
||||||
|
**Description**:
|
||||||
|
|
||||||
|
Break chained method calls across subsequent lines (Supported by JS Beautify, Pretty Diff)
|
||||||
|
|
||||||
|
**Example `.jsbeautifyrc` Configuration**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"js": {
|
||||||
|
"break_chained_methods": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
#### [JavaScript - Wrap line length](#javascript---wrap-line-length)
|
#### [JavaScript - Wrap line length](#javascript---wrap-line-length)
|
||||||
|
|
||||||
**Namespace**: `js`
|
**Namespace**: `js`
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
|
|
||||||
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
|
|
||||||
<xsl:output doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
|
<xsl:output doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" encoding="utf-8" indent="yes" method="html"/>
|
||||||
encoding="utf-8" indent="yes" method="html"/>
|
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<html>
|
<html>
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
var Mist = React.createClass({renderList: function() {
|
var Mist = React.createClass({renderList: function() {
|
||||||
return this
|
return this.props.items.map(function(item) {
|
||||||
.props
|
|
||||||
.items
|
|
||||||
.map(function(item) {
|
|
||||||
return <ListItem item={return <tag>{item}</tag>} key={item.id}/>;
|
return <ListItem item={return <tag>{item}</tag>} key={item.id}/>;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,10 @@ module.exports = class PrettyDiff extends Beautifier
|
||||||
space: "space_after_anon_function"
|
space: "space_after_anon_function"
|
||||||
noleadzero: "no_lead_zero"
|
noleadzero: "no_lead_zero"
|
||||||
endcomma: "end_with_comma"
|
endcomma: "end_with_comma"
|
||||||
|
methodchain: ['break_chained_methods', (break_chained_methods) ->
|
||||||
|
if (break_chained_methods is true ) then \
|
||||||
|
false else true
|
||||||
|
]
|
||||||
# Apply language-specific options
|
# Apply language-specific options
|
||||||
CSV: true
|
CSV: true
|
||||||
ERB: true
|
ERB: true
|
||||||
|
|
Loading…
Reference in New Issue