Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit c1afd2e

Browse files
Nargonathmarkelog
authored andcommitted
disallowAnonymousFunctions: Added explanations about the rule
Added informations on the reason behind using this rule. Fixes #1884 Closes gh-2037
1 parent 1b693db commit c1afd2e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/rules/disallow-anonymous-functions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/**
22
* Requires that a function expression be named.
3+
* Named functions provide more information in the error stack trace than anonymous functions.
4+
*
5+
* This option does not help if you use Arrow functions (ES6) which are always anonymous.
36
*
47
* Type: `Boolean`
58
*

0 commit comments

Comments
 (0)