From 7bee9741b17b8d1ddc0c3f6cc51b2cb3c90bc10c Mon Sep 17 00:00:00 2001 From: Nuno Sousa Date: Wed, 11 Nov 2015 13:05:41 +0000 Subject: [PATCH] Fix arrow function in variable declarations This allows us to do: ```js const request = () => ({ body: {}, statusCode: 200 }); ``` See [relevant rule](http://eslint.org/docs/rules/func-style). --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index d061e99..5894117 100644 --- a/.eslintrc +++ b/.eslintrc @@ -129,7 +129,7 @@ rules: # Stylistic issues computed-property-spacing: 2 consistent-this: 2 - func-style: 2 + func-style: [2, declaration, { allowArrowFunctions: true }] id-length: [2, { exceptions: [_, e, i] }] max-nested-callbacks: [2, 4] new-parens: 2