Skip to content

Commit

Permalink
Docs: added less confusing explanation for func-style
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethsaha committed Mar 6, 2020
1 parent 472025f commit 94fb273
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/rules/func-style.md
Expand Up @@ -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

Expand All @@ -79,6 +79,8 @@ var foo = function() {
};

var foo = () => {};

// allowed as allowArrowFunctions : false is applied only for declaration
```

### declaration
Expand Down

0 comments on commit 94fb273

Please sign in to comment.