From 1f87054e4b4ddcaf5977f0d3ca2fef4707d7ba95 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 21 Jun 2016 16:55:13 -0700 Subject: [PATCH] [eslint config] [base] [patch] `newline-per-chained-call`: bump the limit to 4. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Specifically, this is to allow this frequent pattern: ```js $.ajax({ … }).done(() => { … }).fail(() => { … }).always(() => { … }); ``` --- packages/eslint-config-airbnb-base/rules/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb-base/rules/style.js b/packages/eslint-config-airbnb-base/rules/style.js index f7a8e7f5..c0eb28fa 100644 --- a/packages/eslint-config-airbnb-base/rules/style.js +++ b/packages/eslint-config-airbnb-base/rules/style.js @@ -119,7 +119,7 @@ module.exports = { // enforces new line after each method call in the chain to make it // more readable and easy to maintain // http://eslint.org/docs/rules/newline-per-chained-call - 'newline-per-chained-call': [2, { ignoreChainWithDepth: 3 }], + 'newline-per-chained-call': [2, { ignoreChainWithDepth: 4 }], // disallow use of the Array constructor 'no-array-constructor': 2,