Make WordPress Core


Ignore:
Timestamp:
09/11/2026 06:29:08 AM (6 hours ago)
Author:
afercia
Message:

General: Enable the JSDoc rule require-param-description.

Enables the JSDoc rule require-param-description and fixes all the reported violations.
Part of the effort to improve JS inline documentation for 7.2.

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

Props afercia, westonruter.
See #66033.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/postbox.js

    r59988 r63598  
    247247                 * @memberof postboxes
    248248                 *
    249                  * @param {string} page The page we are currently on.
    250                  * @param {Object} [args]
    251                  * @param {Function} args.pbshow A callback that is called when a postbox opens.
    252                  * @param {Function} args.pbhide A callback that is called when a postbox closes.
     249                 * @param {string}   page          The page we are currently on.
     250                 * @param {Object}   [args]        Optional arguments for the postbox toggles.
     251                 * @param {Function} [args.pbshow] A callback that is called when a postbox opens.
     252                 * @param {Function} [args.pbhide] A callback that is called when a postbox closes.
    253253                 * @return {void}
    254254                 */
Note: See TracChangeset for help on using the changeset viewer.