WordPress JavaScript Standards Change Proposal

Author: WordPress.org

Date: September 21, 2021 

Category: Make WordPress Core

This post was authored by @opr18 (Thomas Roberts).

During a recent WordPress #core-js meeting there was a discussion about updating the JavaScript coding standard. The specific update that is being proposed is to change the rules relating to comments.

Currently, the standard reads:

Comments come before the code to which they refer, and should always be preceded by a blank line. Capitalize the first letter of the comment, and include a period at the end when writing full sentences. There must be a single space between the comment token (//) and the comment text.

The proposal is that the new

This is the first part of the article “WordPress JavaScript Standards Change Proposal“
written by WordPress.org.