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:
+4
-4
@@ -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,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user