Configure prettier prose-wrap in .prettierrc instead of the CLI (#17184)

This also removes the file-specific targets from prettier execution
which means we're including `.json`, `.css`, and `.html` files, which
seems like an improvement.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Zanie Blue
2025-12-18 18:54:23 -06:00
committed by GitHub
parent c2e1983cd6
commit e006a69fe8
11 changed files with 213 additions and 520 deletions
+4 -4
View File
@@ -8,8 +8,8 @@ function cleanupClipboardText(targetSelector) {
.filter(
(node) =>
!excludedClasses.some((className) =>
node?.classList?.contains(className)
)
node?.classList?.contains(className),
),
)
.map((node) => node.textContent)
.filter((s) => s != "");
@@ -23,7 +23,7 @@ function setCopyText() {
const attr = "clipboardText";
// all "copy" buttons whose target selector is a <code> element
const elements = document.querySelectorAll(
'button[data-clipboard-target$="code"]'
'button[data-clipboard-target$="code"]',
);
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
@@ -33,7 +33,7 @@ function setCopyText() {
entry.target.dataset[attr] === undefined
) {
entry.target.dataset[attr] = cleanupClipboardText(
entry.target.dataset.clipboardTarget
entry.target.dataset.clipboardTarget,
);
}
});