mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 14:44:13 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue