DEV: Update lint-configs and autofix issues (#31620)

This updates us to Prettier 3.x
This commit is contained in:
Jarek Radosz
2025-03-05 01:20:16 +01:00
committed by GitHub
parent f8b30ffd06
commit 28e00d9bfe
154 changed files with 3651 additions and 2922 deletions

View File

@ -180,20 +180,17 @@ function initializeDiscourseLocalDates(api) {
});
});
addTextDecorateCallback(function (
text,
nextElement,
_previousElement,
metadata
) {
if (
metadata.discourseLocalDateStartRangeOpts &&
nextElement?.attributes.class?.includes("discourse-local-date") &&
text === "→"
) {
return "";
addTextDecorateCallback(
function (text, nextElement, _previousElement, metadata) {
if (
metadata.discourseLocalDateStartRangeOpts &&
nextElement?.attributes.class?.includes("discourse-local-date") &&
text === "→"
) {
return "";
}
}
});
);
addTagDecorateCallback(function () {
if (this.element.attributes.class?.includes("discourse-local-date")) {
if (this.metadata.discourseLocalDateStartRangeOpts) {