Make WordPress Core


Ignore:
Timestamp:
09/11/2026 10:50:50 AM (13 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/_enqueues/wp/updates.js

    r63598 r63600  
    11161116         * @since 6.5.0
    11171117         *
    1118          * @param {Object} response             Response from the server.
    1119          * @param {string} response.slug        Slug of the activated plugin.
    1120          * @param {string} response.pluginName  Name of the activated plugin.
    1121          * @param {string} response.plugin      The plugin file, relative to the plugins directory.
     1118         * @param {Object} response            Response from the server.
     1119         * @param {string} response.slug       Slug of the activated plugin.
     1120         * @param {string} response.pluginName Name of the activated plugin.
     1121         * @param {string} response.plugin     The plugin file, relative to the plugins directory.
    11221122         */
    11231123        wp.updates.activatePluginSuccess = function( response ) {
Note: See TracChangeset for help on using the changeset viewer.