Skip to content

Commit bbb1ac6

Browse files
committed
Update example
1 parent 822b0d1 commit bbb1ac6

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

etc/eslint/rules/style.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,21 @@ rules[ 'func-name-matching' ] = 'off';
322322
*
323323
* @example
324324
* // Bad...
325-
* var foo = function(){};
325+
* var foo = function() {
326+
* // Do something...
327+
* };
326328
*
327329
* @example
328330
* // Good...
329-
* var foo = function foo(){};
331+
* var foo = function foo() {
332+
* // Do something...
333+
* };
334+
*
335+
* @example
336+
* // Better...
337+
* function foo() {
338+
* // Do something...
339+
* }
330340
*/
331341
rules[ 'func-names' ] = [ 'error', 'always' ];
332342

0 commit comments

Comments
 (0)