mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
DEV: Update lint-configs and autofix issues (#31620)
This updates us to Prettier 3.x
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user