Skip to content

build: Format with wp-prettier - #101

Merged
dcalhoun merged 4 commits into
trunkfrom
build/format-with-wp-prettier
Feb 18, 2025
Merged

dcalhoun merged 4 commits into
trunkfrom
build/format-with-wp-prettier

Conversation

@dcalhoun

@dcalhoun dcalhoun commented Feb 15, 2025 •

Copy link
Copy Markdown
Member

What?

Ensure the WordPress community-specific parenSpaces style is applied.

Why?

Align with Gutenberg project practices.

How?

Replace prettier with wp-prettier.

Testing Instructions

N/A, no user-facing changes.

Accessibility Testing Instructions

N/A, no user-facing changes.

Screenshots or screencast

N/A, no user-facing changes.

@dcalhoun dcalhoun added the [Type] Task Issues or PRs that have been broken down into an individual action to take label Feb 15, 2025
Comment thread src/remote.jsx Fixed
Comment thread src/remote.jsx Fixed

@dcalhoun dcalhoun left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the inline comments, all changes are solely code formatting changes applied by wp-prettier.

Comment thread src/remote.jsx
Comment on lines +93 to +103
.flatMap( ( script ) => [
`wp-content/plugins/gutenberg/build/${ script
.replace( /\\/g, '\\\\' )
.replace( /\//g, '\\/' ) }\\b`,
`wp-includes/js/dist/${ script
.replace( /\\/g, '\\\\' )
.replace( /\//g, '\\/' ) }\\b`,
] )

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added backslash escaping to address security alerts.

<Editor { ...props }>
<EditorSnackbars />
</Editor>
<EditorLoadNotice className="gutenberg-kit-layout__load-notice" />

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relocated from editor to layout to ensure it sits atop other editor UI.

@dcalhoun
dcalhoun marked this pull request as ready for review February 16, 2025 13:48
@dcalhoun
dcalhoun requested a review from nbradbury February 16, 2025 13:48
@dcalhoun
dcalhoun enabled auto-merge (squash) February 16, 2025 13:48
@dcalhoun

Copy link
Copy Markdown
Member Author

@nbradbury sending a friendly reminder of this PR review request. No worries if you'd like additional time to review, just ensuring it doesn't "fall through the cracks." Thanks! 🙇🏻‍♂️

@nbradbury nbradbury self-assigned this Feb 18, 2025

@nbradbury nbradbury left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dcalhoun Apologies for my delay on this. All changes look good and I'll approve, but it appears that my delay caused some conflicts. Feel free to merge once those are resolved :shipit:

@dcalhoun
dcalhoun force-pushed the build/format-with-wp-prettier branch from 41d76f9 to 57f9cd5 Compare February 18, 2025 21:01
Adhere to Gutenberg project practices.
Improve robustness of regular expression logic modifying remote script
paths.
Ensure notice sits atop editor UI.
@dcalhoun
dcalhoun force-pushed the build/format-with-wp-prettier branch from 57f9cd5 to c5500ff Compare February 18, 2025 21:02
@dcalhoun
dcalhoun merged commit 8ec99df into trunk Feb 18, 2025
@dcalhoun
dcalhoun deleted the build/format-with-wp-prettier branch February 18, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Task Issues or PRs that have been broken down into an individual action to take

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants