From 94fb273ece21fef424dae42ba3cdcb51a99c604c Mon Sep 17 00:00:00 2001 From: anikethsaha Date: Fri, 6 Mar 2020 03:14:36 +0530 Subject: [PATCH] Docs: added less confusing explanation for func-style --- docs/rules/func-style.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/rules/func-style.md b/docs/rules/func-style.md index e17fecf8f82..abee9b69fd1 100644 --- a/docs/rules/func-style.md +++ b/docs/rules/func-style.md @@ -55,7 +55,7 @@ This rule has a string option: This rule has an object option for an exception: -* `"allowArrowFunctions": true` (default `false`) allows the use of arrow functions (honoured only when using `declaration`) +* `"allowArrowFunctions": true` (default `false`) allows the use of arrow functions (works only when using `declaration` in `func-style`'s options) ### expression @@ -79,6 +79,8 @@ var foo = function() { }; var foo = () => {}; + +// allowed as allowArrowFunctions : false is applied only for declaration ``` ### declaration