Make WordPress Core


Ignore:
Timestamp:
09/11/2026 10:50:50 AM (17 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/backbone.js

    r57987 r63600  
    285285                 *
    286286                 * @return {wp.Backbone.Subviews} The current Subviews instance.
    287                 */
     287                 */
    288288                render: function() {
    289289                        var options = {
     
    315315                 *
    316316                 * @return {wp.Backbone.Subviews} The current Subviews instance.
    317                 */
     317                 */
    318318                remove: function( options ) {
    319319                        if ( ! options || ! options.silent ) {
     
    339339                 *
    340340                 * @param {string} $target Selector where to put the elements.
    341                  * @param {*} els HTML or elements to put into the selector's HTML.
     341                 * @param {*}      els    HTML or elements to put into the selector's HTML.
    342342                 *
    343343                 * @return {wp.Backbone.Subviews} The current Subviews instance.
Note: See TracChangeset for help on using the changeset viewer.