Skip to content

Conversation

@felixarntz
Copy link
Member

@felixarntz felixarntz commented Nov 30, 2025

What?

The npm run format command currently formats all kinds of files, including composer.json, .github workflows, etc. The way it formats these is not entirely aligned with the WordPress Coding Standards, and FWIW the project is not following the format that it applies.

How?

This PR changes the command to only format production JS/TS code, and rename the command to npm run format:js. This also brings parity with npm run lint:js and avoids having to deal with random accidental file modifications to various config files.

Test using WordPress Playground

The changes in this pull request can be previewed and tested using this WordPress Playground instance:

Click here to test this pull request.

@felixarntz felixarntz requested a review from dkotter November 30, 2025 01:55
@felixarntz felixarntz added the [Type] Enhancement New feature or request label Nov 30, 2025
@github-actions
Copy link

github-actions bot commented Nov 30, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: felixarntz <[email protected]>
Co-authored-by: dkotter <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@dkotter dkotter merged commit c443651 into develop Dec 1, 2025
21 checks passed
@dkotter dkotter deleted the enhancement/format-js branch December 1, 2025 17:58
@github-project-automation github-project-automation bot moved this from Needs review to Done in WordPress AI Planning & Roadmap Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

4 participants