From 78bb2edf1a90e576693dabe26a145fe5cd8c14c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sat, 18 Feb 2017 01:57:50 -0500 Subject: [PATCH] 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 ``` --- .eslintrc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 016b18a4..d18619a9 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -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]