From 7405789d2020d2d47f44840e9062feeb38f43e5d Mon Sep 17 00:00:00 2001 From: Achi Chen Date: Sat, 30 Jul 2016 01:38:03 +0800 Subject: [PATCH] 1. Allow confusing arrow function with parenthesis 2. No newline is required before return 3. Allow mixed operator, e.g. 3 + 4 * 5 --- packages/eslint-config-migme/rules/es6.js | 4 +++- packages/eslint-config-migme/rules/style.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/eslint-config-migme/rules/es6.js b/packages/eslint-config-migme/rules/es6.js index 5d1a3a7..907c46e 100644 --- a/packages/eslint-config-migme/rules/es6.js +++ b/packages/eslint-config-migme/rules/es6.js @@ -25,7 +25,9 @@ module.exports = { after: true, }], 'no-class-assign': 2, - 'no-confusing-arrow': 2, + 'no-confusing-arrow': [2, { + allowParens: true + }], 'no-const-assign': 2, 'no-dupe-class-members': 2, 'no-duplicate-imports': 2, diff --git a/packages/eslint-config-migme/rules/style.js b/packages/eslint-config-migme/rules/style.js index 45cd35f..59da886 100644 --- a/packages/eslint-config-migme/rules/style.js +++ b/packages/eslint-config-migme/rules/style.js @@ -47,14 +47,14 @@ module.exports = { }], 'new-parens': 2, 'newline-after-var': 0, - 'newline-before-return': 2, + 'newline-before-return': 0, 'newline-per-chained-call': [2, { ignoreChainWithDepth: 2 }], 'no-array-constructor': 2, 'no-bitwise': 0, 'no-continue': 0, 'no-inline-comments': 0, 'no-lonely-if': 0, - 'no-mixed-operators': 2, + 'no-mixed-operators': 0, 'no-mixed-spaces-and-tabs': 2, 'no-multiple-empty-lines': [2, { max: 1 }], 'no-negated-condition': 2,