Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .eslintrc-jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = [
},
},
rules: {
'jsdoc/check-access': 'error',
'jsdoc/check-alignment': 'error',
'jsdoc/check-indentation': [ 'error', {
excludeTags: [
Expand All @@ -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',
Expand All @@ -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',
},
},
Expand Down
1 change: 0 additions & 1 deletion src/js/_enqueues/lib/nav-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Handles the WordPress Administration Navigation Menu Interface functionality.
*
* @version 2.0.0
* @package WordPress
*
* @param {JQueryStatic} $ The jQuery object.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/js/media/models/attachments.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion src/js/media/models/post-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/media/views/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Loading