Make WordPress Core


Ignore:
Timestamp:
09/11/2026 10:50:50 AM (8 hours ago)
Author:
afercia
Message:

General: Fix indentation and alignments in JavaScript inline documentation blocks.

Enables the following JSDoc rules:

  • jsdoc/check-alignment
  • jsdoc/check-indentation
  • jsdoc/check-line-alignment
  • jsdoc/require-hyphen-before-param-description -> never

Fixes all the reported violations. Also removes hyphens before descriptions.

Part of the effort to improve JS inline documentation for 7.2.

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

Props afercia, mukesh27.
See #66033.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/media/models/attachments.js

    r63598 r63600  
    1919 * @param {string}                      [options.props.orderby] Initial attribute key to order the collection by.
    2020 * @param {string}                      [options.props.query]   Whether the collection is linked to an attachments query.
    21  * @param {string}                      [options.observe]           An attachments collection to observe and mirror.
    22  * @param {string}                      [options.filters]           Filters to apply to the collection.
     21 * @param {string}                      [options.observe]       An attachments collection to observe and mirror.
     22 * @param {string}                      [options.filters]       Filters to apply to the collection.
    2323 *
    2424 */
Note: See TracChangeset for help on using the changeset viewer.