Skip to content

Commit 3ab3170

Browse files
committed
fixes #35
1 parent 5232183 commit 3ab3170

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

es5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module.exports = {
105105
SwitchCase: 1,
106106
// continuation indent
107107
VariableDeclarator: 1, // indent is multiplier * indent = 1 * 2
108-
MemberExpression: 2, // indent is multiplier * indent = 2 * 2
108+
MemberExpression: 'off', // indent is multiplier * indent = 2 * 2
109109
FunctionDeclaration: {parameters: 2},
110110
FunctionExpression: {parameters: 2},
111111
CallExpression: {arguments: 2}

test/es5/indent.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
// Continuation, aka MemberExpression
44
var promise = window.Promise.resolve(true);
55
promise.
6-
then(function (data) {
7-
return data;
8-
}).
9-
then(function (truthy) {
10-
return !truthy;
11-
}).
12-
catch(function () {
13-
return false;
14-
});
6+
then(function (data) {
7+
return data;
8+
}).
9+
then(function (truthy) {
10+
return !truthy;
11+
}).
12+
catch(function () {
13+
return false;
14+
});
1515

1616
// Function expression
1717
var fun = function (first, second) {

0 commit comments

Comments
 (0)