From 89e3185a135ca6706ee0ec51dd4dd094a04387ae Mon Sep 17 00:00:00 2001 From: Vitaly Kramskikh Date: Fri, 17 Jun 2016 15:13:39 +0300 Subject: [PATCH] Switch consistent-return rule to warning mode eslint-config-openstack has this rule enabled, but in fuel-ui it was disabled due to large number of violations. We need to have as little overrides as possible. Also, this rule would help us with new behaviour of jQuery v3 promises. Change-Id: Iaeca17feb88bbd6ca51cd1e4727609a6298e5acf --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index c85f0b303..036c0b26f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,7 +3,7 @@ extends: openstack rules: # disabled rules from openstack config - consistent-return: 0 # we have lots of incosistent returns which aren't errors + consistent-return: 1 # we have lots of incosistent returns which need to be fixed no-extra-parens: 0 # extra parens are preferred with JSX no-warning-comments: 0 # we're ok with FIXMEs no-process-env: 0 # we use it in a few places and are ok with it