Remove leading space in .prettierrc filename
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 4 Feb 2021 08:14:59 +0000 (09:14 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 4 Feb 2021 08:24:59 +0000 (09:24 +0100)
.prettierrc [deleted file]
.prettierrc [new file with mode: 0644]
ts/WoltLabSuite/Core/Conversation/Ui/Participant/Add.ts
ts/WoltLabSuite/Core/Conversation/Ui/Subject/Editor.ts

diff --git a/ .prettierrc b/ .prettierrc
deleted file mode 100644 (file)
index d3baa6e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-trailingComma: all
diff --git a/.prettierrc b/.prettierrc
new file mode 100644 (file)
index 0000000..d3baa6e
--- /dev/null
@@ -0,0 +1 @@
+trailingComma: all
index 5425a9b3dc1c91fe8e6969cc47b832b70e105254..479814826e3fee8bec1b80e44f66600b4ec9e519 100644 (file)
@@ -79,7 +79,7 @@ class UiParticipantAdd implements AjaxCallbackObject, DialogCallbackObject {
     if (data.returnValues.errorMessage) {
       DomUtil.innerError(
         document.getElementById("participantsInput")!.closest(".inputItemList") as HTMLElement,
-        data.returnValues.errorMessage
+        data.returnValues.errorMessage,
       );
       return;
     }
@@ -134,7 +134,7 @@ class UiParticipantAdd implements AjaxCallbackObject, DialogCallbackObject {
       visibility: null as null | string,
     };
     const visibility = UiDialog.getDialog(this)!.content.querySelector(
-      'input[name="messageVisibility"]:checked, input[name="messageVisibility"][type="hidden"]'
+      'input[name="messageVisibility"]:checked, input[name="messageVisibility"][type="hidden"]',
     ) as HTMLInputElement;
 
     if (visibility) {
index 1de72f2689d86b13437c08c136e8f55d8f92f968..08cf8531f0f8b1556ccd687158133546f4483484 100644 (file)
@@ -64,8 +64,8 @@ class UiSubjectEditor implements AjaxCallbackObject, DialogCallbackObject {
   protected getCurrentValue(): string {
     return Array.from(
       document.querySelectorAll(
-        `.jsConversationSubject[data-conversation-id="${this.objectId}"], .conversationLink[data-object-id="${this.objectId}"]`
-      )
+        `.jsConversationSubject[data-conversation-id="${this.objectId}"], .conversationLink[data-object-id="${this.objectId}"]`,
+      ),
     )
       .map((subject: HTMLElement) => subject.textContent!)
       .slice(-1)[0];
@@ -76,7 +76,7 @@ class UiSubjectEditor implements AjaxCallbackObject, DialogCallbackObject {
 
     document
       .querySelectorAll(
-        `.jsConversationSubject[data-conversation-id="${this.objectId}"], .conversationLink[data-object-id="${this.objectId}"]`
+        `.jsConversationSubject[data-conversation-id="${this.objectId}"], .conversationLink[data-object-id="${this.objectId}"]`,
       )
       .forEach((subject) => {
         subject.textContent = data.returnValues.subject;