We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 822b0d1 commit bbb1ac6Copy full SHA for bbb1ac6
1 file changed
etc/eslint/rules/style.js
@@ -322,11 +322,21 @@ rules[ 'func-name-matching' ] = 'off';
322
*
323
* @example
324
* // Bad...
325
-* var foo = function(){};
+* var foo = function() {
326
+* // Do something...
327
+* };
328
329
330
* // Good...
-* var foo = function foo(){};
331
+* var foo = function foo() {
332
333
334
+*
335
+* @example
336
+* // Better...
337
+* function foo() {
338
339
+* }
340
*/
341
rules[ 'func-names' ] = [ 'error', 'always' ];
342
0 commit comments