Make WordPress Core

Changeset 63775


Ignore:
Timestamp:
09/21/2026 05:28:42 PM (9 hours ago)
Author:
afercia
Message:

General: Enable the JSDoc rules related to the property tag.

Enables the following JSDoc rules:

  • jsdoc/check-property-names
  • jsdoc/require-property
  • jsdoc/require-property-name
  • jsdoc/require-property-description
  • jsdoc/require-property-type

Fixes all the related violations.
Part of the effort to improve JS inline documentation for 7.2.

Developed in https://github.com/WordPress/wordpress-develop/pull/13632

See #66033.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/.eslintrc-jsdoc.js

    r63769 r63775  
    5353                        } ],
    5454                        'jsdoc/check-param-names': 'error',
     55                        'jsdoc/check-property-names': 'error',
    5556                        'jsdoc/check-syntax': 'error',
    5657                        'jsdoc/check-tag-names': [ 'error', {
     
    7475                        'jsdoc/require-param-name': 'error',
    7576                        'jsdoc/require-param-type': 'error',
     77                        'jsdoc/require-property': 'error',
     78                        'jsdoc/require-property-name': 'error',
     79                        'jsdoc/require-property-description': 'error',
     80                        'jsdoc/require-property-type': 'error',
    7681                        'jsdoc/require-returns': 'error',
    7782                        'jsdoc/require-returns-check': 'error',
  • trunk/src/js/_enqueues/lib/emoji-loader.js

    r63755 r63775  
    99 * @typedef WPEmojiSettings
    1010 * @type {Object}
    11  * @property {?object} source
    12  * @property {?string} source.concatemoji
    13  * @property {?string} source.twemoji
    14  * @property {?string} source.wpemoji
     11 * @property {?object} source             The source object containing emoji-related URLs.
     12 * @property {?string} source.concatemoji The URL for the concatenated emoji script.
     13 * @property {?string} source.twemoji     The URL for the Twemoji script.
     14 * @property {?string} source.wpemoji     The URL for the WP Emoji script.
    1515 */
    1616
     
    2929 * @typedef SupportTests
    3030 * @type {Object}
    31  * @property {?boolean} flag
    32  * @property {?boolean} emoji
     31 * @property {?boolean} flag  Whether the browser supports flag emojis.
     32 * @property {?boolean} emoji Whether the browser supports general emojis.
    3333 */
    3434
     
    5858 * @typedef SessionSupportTests
    5959 * @type {Object}
    60  * @property {number}       timestamp
    61  * @property {SupportTests} supportTests
     60 * @property {number}       timestamp    The timestamp when the support tests were last updated.
     61 * @property {SupportTests} supportTests The support tests for the browser.
    6262 */
    6363
  • trunk/src/js/_enqueues/wp/updates.js

    r63600 r63775  
    168168         *
    169169         * @type {Object}
     170         * @property {Object}  filesystemCredentials                    Holds all filesystem credentials.
    170171         * @property {Object}  filesystemCredentials.ftp                Holds FTP credentials.
    171172         * @property {string}  filesystemCredentials.ftp.host           FTP host. Default empty string.
     
    33053306                                // Called from `wp-admin/includes/class-wp-upgrader-skins.php`.
    33063307                                case 'decrementUpdateCount':
    3307                                         /** @property {string} message.upgradeType */
     3308                                        /**
     3309                                         * @property {string} message             The message associated with the update.
     3310                                         * @property {string} message.upgradeType The type of upgrade being performed.
     3311                                         */
    33083312                                        wp.updates.decrementCount( message.upgradeType );
    33093313                                        break;
  • trunk/src/js/media/controllers/region.js

    r63598 r63775  
    9696                 * @event wp.media.controller.Region#create
    9797                 * @type {Object}
    98                  * @property {Object} view
     98                 * @property {Object} view The view object for the region.
    9999                 */
    100100                this.trigger( 'create', set );
Note: See TracChangeset for help on using the changeset viewer.