diff --git a/packages/eslint-config-shakacode/package.json b/packages/eslint-config-shakacode/package.json index 82ebf7d..239fa17 100644 --- a/packages/eslint-config-shakacode/package.json +++ b/packages/eslint-config-shakacode/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-shakacode", - "version": "13.0.0", + "version": "13.0.1-beta.1", "description": "Shakacode eslint config.", "authors": [ "Justin Gordon (https://github.com/justin808)", diff --git a/packages/eslint-config-shakacode/rules/javascript.yml b/packages/eslint-config-shakacode/rules/javascript.yml index 7b8a9ad..44dbd8a 100644 --- a/packages/eslint-config-shakacode/rules/javascript.yml +++ b/packages/eslint-config-shakacode/rules/javascript.yml @@ -1,8 +1,11 @@ --- rules: + # Airbnb style guideline has arrow-parens to be used if the body has braces, but not parens. + # We use flow, so we need the parens sometimes for single params with type annotations. + # However, we can't always use parens, as we don't want them for simple lodash operations with + # inline arrow functions. arrow-parens: - - 2 - - "always" + - 0 # http://eslint.org/docs/rules/no-return-assign.html # packages/eslint-config-airbnb-base/rules/best-practices.js used the default which is