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:
parent
b140a1c452
commit
78bb2edf1a
@ -17,7 +17,7 @@ rules:
|
|||||||
dot-notation: 2
|
dot-notation: 2
|
||||||
eqeqeq: 2
|
eqeqeq: 2
|
||||||
handle-callback-err: 2
|
handle-callback-err: 2
|
||||||
indent: [2, tab]
|
indent: [2, tab, { "MemberExpression": 1 }]
|
||||||
key-spacing: [2, {beforeColon: false, afterColon: true}]
|
key-spacing: [2, {beforeColon: false, afterColon: true}]
|
||||||
keyword-spacing: [2, {before: true, after: true}]
|
keyword-spacing: [2, {before: true, after: true}]
|
||||||
linebreak-style: [2, unix]
|
linebreak-style: [2, unix]
|
||||||
|
Loading…
Reference in New Issue
Block a user