Skip to content

Commit

Permalink
Docs: fix example in object-curly-newline docs (#11633)
Browse files Browse the repository at this point in the history
  • Loading branch information
golopot authored and not-an-aardvark committed May 11, 2019
1 parent 252efd3 commit e84b6f8
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions docs/rules/object-curly-newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,23 +333,19 @@ let c = {foo: 1, bar: 2
};
let d = {
foo: 1, bar: 2};
let e = {foo: 1,
bar: 2};
let f = {foo: function() {
let e = {foo: function() {
dosomething();
}};

let {g
let {f
} = obj;
let {
h} = obj;
let {i, j
g} = obj;
let {h, i
} = obj;
let {
k, l} = obj;
let {m,
n} = obj;
let {o = function() {
j, k} = obj;
let {l = function() {
dosomething();
}} = obj;
```
Expand Down Expand Up @@ -385,13 +381,15 @@ let {i, j} = obj;
let {
k, l
} = obj;
let {m,
n} = obj;
let {
m,
n
o,
p
} = obj;
let {o = function() {dosomething();}} = obj;
let {q = function() {dosomething();}} = obj;
let {
p = function() {
r = function() {
dosomething();
}
} = obj;
Expand Down

0 comments on commit e84b6f8

Please sign in to comment.