diff --git a/.eslintrc-jsdoc.js b/.eslintrc-jsdoc.js index 7815cb1395e80..946e3d46028dd 100644 --- a/.eslintrc-jsdoc.js +++ b/.eslintrc-jsdoc.js @@ -36,6 +36,7 @@ module.exports = [ }, }, rules: { + 'jsdoc/check-access': 'error', 'jsdoc/check-alignment': 'error', 'jsdoc/check-indentation': [ 'error', { excludeTags: [ @@ -62,9 +63,15 @@ module.exports = [ 'link', ], } ], + 'jsdoc/check-template-names': 'error', 'jsdoc/check-types': 'error', + 'jsdoc/empty-tags': 'error', + 'jsdoc/implements-on-classes': 'error', + 'jsdoc/multiline-blocks': 'error', 'jsdoc/no-blank-blocks': 'error', 'jsdoc/no-blank-block-descriptions': 'error', + 'jsdoc/no-multi-asterisks': 'error', + 'jsdoc/require-asterisk-prefix': 'error', 'jsdoc/require-description': 'error', 'jsdoc/require-hyphen-before-param-description': [ 'error', 'never' ], 'jsdoc/require-jsdoc': 'error', @@ -82,6 +89,7 @@ module.exports = [ 'jsdoc/require-returns-check': 'error', 'jsdoc/require-returns-description': 'error', 'jsdoc/require-returns-type': 'error', + 'jsdoc/require-yields': 'error', 'jsdoc/valid-types': 'error', }, }, diff --git a/src/js/_enqueues/lib/nav-menu.js b/src/js/_enqueues/lib/nav-menu.js index 5e94a2b34f3c9..7add91ac4be5d 100644 --- a/src/js/_enqueues/lib/nav-menu.js +++ b/src/js/_enqueues/lib/nav-menu.js @@ -8,7 +8,6 @@ * Handles the WordPress Administration Navigation Menu Interface functionality. * * @version 2.0.0 - * @package WordPress * * @param {JQueryStatic} $ The jQuery object. */ diff --git a/src/js/media/models/attachments.js b/src/js/media/models/attachments.js index b84b782ca5fc7..48e23ffd90c22 100644 --- a/src/js/media/models/attachments.js +++ b/src/js/media/models/attachments.js @@ -538,10 +538,10 @@ var Attachments = Backbone.Collection.extend(/** @lends wp.media.model.Attachmen /** * Filters attachments based on a search query. * - * @static * Note that this client-side searching is *not* equivalent * to our server-side searching. * + * @static * @param {wp.media.model.Attachment} attachment The attachment to filter based on the search query. * * @this {wp.media.model.Attachments} diff --git a/src/js/media/models/post-image.js b/src/js/media/models/post-image.js index d5972e9be41f2..cfef96d2966a9 100644 --- a/src/js/media/models/post-image.js +++ b/src/js/media/models/post-image.js @@ -12,7 +12,7 @@ * * @param {number} [attributes] Initial model attributes. * @param {number} [attributes.attachment_id] ID of the attachment. - **/ + */ var PostImage = Backbone.Model.extend(/** @lends wp.media.model.PostImage.prototype */{ initialize: function( attributes ) { diff --git a/src/js/media/views/modal.js b/src/js/media/views/modal.js index 629329ed88789..f1dd389c7a8b9 100644 --- a/src/js/media/views/modal.js +++ b/src/js/media/views/modal.js @@ -203,7 +203,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{ /** * Handles the selection of attachments when the command or control key is pressed with the enter key. * - * @since 6.7 + * @since 6.7.0 * * @param {JQuery.Event} event The jQuery event object. */