Skip to content

Commit

Permalink
docs: add that default export functions are checked
Browse files Browse the repository at this point in the history
  • Loading branch information
golopot committed Feb 17, 2020
1 parent 18b29ac commit 036ce53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/func-names.md
Expand Up @@ -16,8 +16,8 @@ This rule can enforce or disallow the use of named function expressions.

This rule has a string option:

* `"always"` (default) requires function expressions to have a name
* `"as-needed"` requires function expressions to have a name, if the name cannot be assigned automatically in an ES6 environment
* `"always"` (default) requires function expressions and default export functions to have a name
* `"as-needed"` requires function expressions and default export functions to have a name, if the name cannot be assigned automatically in an ES6 environment
* `"never"` disallows named function expressions, except in recursive functions, where a name is needed

This rule has an object option:
Expand Down

0 comments on commit 036ce53

Please sign in to comment.