From 90235cab7c060d69430001cf17aa28ff74da86b4 Mon Sep 17 00:00:00 2001 From: Pirasis <1pete@users.noreply.github.com> Date: Sun, 24 Dec 2017 10:06:09 +0700 Subject: [PATCH] [eslint config] [base] [patch] `array-callback-return`: enable `allowImplicit` option --- packages/eslint-config-airbnb-base/rules/best-practices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb-base/rules/best-practices.js b/packages/eslint-config-airbnb-base/rules/best-practices.js index 3fd0ff105d..978cafc698 100644 --- a/packages/eslint-config-airbnb-base/rules/best-practices.js +++ b/packages/eslint-config-airbnb-base/rules/best-practices.js @@ -5,7 +5,7 @@ module.exports = { // enforces return statements in callbacks of array's methods // https://eslint.org/docs/rules/array-callback-return - 'array-callback-return': 'error', + 'array-callback-return': ['error', { allowImplicit: true }], // treat var statements as if they were block scoped 'block-scoped-var': 'error',