Make sure multiline chains of calls are correctly indented

Without this rule, the following examples are passing ESLint:

```js
foo()
.bar(); // 0 tabs

foo()
		.bar() // 2 tabs
	.baz(); // 1 tab

foo()
  .bar() // 2 spaces
	.baz(); // 1 tab
```
This commit is contained in:
Jérémie Astori 2017-02-18 01:57:50 -05:00
parent b140a1c452
commit 78bb2edf1a

View file

@ -17,7 +17,7 @@ rules:
dot-notation: 2
eqeqeq: 2
handle-callback-err: 2
indent: [2, tab]
indent: [2, tab, { "MemberExpression": 1 }]
key-spacing: [2, {beforeColon: false, afterColon: true}]
keyword-spacing: [2, {before: true, after: true}]
linebreak-style: [2, unix]