From 5ded256d3fab29b7b3fa42238093b9af632fb32b Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 20 Mar 2016 17:23:49 -0700 Subject: [PATCH] [Fix] re-enable `no-confusing-arrow` rule, with `allowParens` option enabled. Per #752, fixes #791. --- packages/eslint-config-airbnb/rules/es6.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb/rules/es6.js b/packages/eslint-config-airbnb/rules/es6.js index d0b7bbde9f..a26e49d9df 100644 --- a/packages/eslint-config-airbnb/rules/es6.js +++ b/packages/eslint-config-airbnb/rules/es6.js @@ -30,7 +30,9 @@ module.exports = { 'no-class-assign': 0, // disallow arrow functions where they could be confused with comparisons // http://eslint.org/docs/rules/no-confusing-arrow - 'no-confusing-arrow': 0, + 'no-confusing-arrow': [2, { + 'allowParens': true, + }], // disallow modifying variables that are declared using const 'no-const-assign': 2, // disallow symbol constructor