Skip to content

Commit 875158e

Browse files
committed
Update example
1 parent bbb1ac6 commit 875158e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

etc/eslint/rules/style.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,15 @@ rules[ 'func-names' ] = [ 'error', 'always' ];
350350
*
351351
* @example
352352
* // Bad...
353-
* var foo = function(){};
353+
* var foo = function() {
354+
* // Do something...
355+
* };
354356
*
355357
* @example
356358
* // Good...
357-
* function foo(){}
359+
* function foo() {
360+
* // Do something...
361+
* }
358362
*/
359363
rules[ 'func-style' ] = [ 'error', 'declaration', {
360364
'allowArrowFunctions': false

0 commit comments

Comments
 (0)