From 1497668674fca7092c0f389815a7b186297debc1 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 18 Nov 2024 14:04:07 +0000 Subject: [PATCH] Utils: Fix typos in documentation, and some indentation --- src/utils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils.js b/src/utils.js index e9208bc..e511d2d 100644 --- a/src/utils.js +++ b/src/utils.js @@ -312,7 +312,7 @@ function createCollectionMethodRule( methods, message, options ) { methods = Array.isArray( methods ) ? methods : [ methods ]; let description = 'Disallows the ' + methods.map( jQueryCollectionLink ).join( '/' ) + ' ' + - ( methods.length > 1 ? 'methods' : 'method' ) + '.'; + ( methods.length > 1 ? 'methods' : 'method' ) + '.'; description += messageSuffix( message ); @@ -370,7 +370,7 @@ function createCollectionMethodRule( methods, message, options ) { } /** - * Create a rule for collection property + * Create a rule for collection properties * * @param {string} property Property name * @param {string|Function} [message] Message to report. See createCollectionMethodRule. @@ -422,7 +422,7 @@ function createUtilMethodRule( methods, message, options ) { methods = Array.isArray( methods ) ? methods : [ methods ]; let description = 'Disallows the ' + methods.map( jQueryGlobalLink ).join( '/' ) + ' ' + - ( methods.length > 1 ? 'utilies' : 'utility' ) + '.'; + ( methods.length > 1 ? 'utilies' : 'utility' ) + '.'; description += messageSuffix( message ); @@ -449,7 +449,7 @@ function createUtilMethodRule( methods, message, options ) { } /** - * Create a rule for util methods + * Create a rule for util properties * * @param {string} property Property name * @param {string|Function} [message] Message to report. See createCollectionMethodRule. @@ -500,7 +500,7 @@ function createCollectionOrUtilMethodRule( methods, message, options ) { methods = Array.isArray( methods ) ? methods : [ methods ]; let description = 'Disallows the ' + methods.map( jQueryCollectionLink ).join( '/' ) + ' ' + - ( methods.length > 1 ? 'methods' : 'method' ); + ( methods.length > 1 ? 'methods' : 'method' ); description += ' and ' + methods.map( jQueryGlobalLink ).join( '/' ) + ' ' + ( methods.length > 1 ? 'utilies' : 'utility' ) + '.';