diff --git a/addon/chrome/content/styles/context.css b/addon/chrome/content/styles/context.css index db676b1..2299bf9 100644 --- a/addon/chrome/content/styles/context.css +++ b/addon/chrome/content/styles/context.css @@ -1,3 +1,3 @@ bn-context { - min-width: 360px; -} \ No newline at end of file + min-width: 360px; +} diff --git a/addon/chrome/content/styles/details.css b/addon/chrome/content/styles/details.css index 25f9fdb..7744fe8 100644 --- a/addon/chrome/content/styles/details.css +++ b/addon/chrome/content/styles/details.css @@ -1,3 +1,3 @@ bn-details pane-header { - display: none; -} \ No newline at end of file + display: none; +} diff --git a/addon/chrome/content/styles/outline.css b/addon/chrome/content/styles/outline.css index 8e0b09a..c79e561 100644 --- a/addon/chrome/content/styles/outline.css +++ b/addon/chrome/content/styles/outline.css @@ -31,8 +31,8 @@ bn-outline .zotero-tb-button { -moz-context-properties: fill, fill-opacity; } -bn-outline .zotero-tb-button[type=menu] { - width: 40px; +bn-outline .zotero-tb-button[type="menu"] { + width: 40px; } #__addonRef__-setOutline { diff --git a/src/elements/related.ts b/src/elements/related.ts index e83f60b..a7a28f3 100644 --- a/src/elements/related.ts +++ b/src/elements/related.ts @@ -80,8 +80,7 @@ export class NoteRelatedBox extends RelatedBox { if ( this.editable && - (!relatedItem.isNote() || - !getPref("related.takeover")) + (!relatedItem.isNote() || !getPref("related.takeover")) ) { const remove = document.createXULElement("toolbarbutton"); remove.addEventListener("command", () => this._handleRemove(id)); diff --git a/src/modules/editor/inject.ts b/src/modules/editor/inject.ts index 379e061..da558de 100644 --- a/src/modules/editor/inject.ts +++ b/src/modules/editor/inject.ts @@ -22,7 +22,9 @@ export async function injectEditorCSS(win: Window) { tag: "style", id: "betternotes-style", properties: { - innerHTML: await getFileContent(rootURI + "chrome/content/styles/editor.css"), + innerHTML: await getFileContent( + rootURI + "chrome/content/styles/editor.css", + ), }, ignoreIfExists: true, }, diff --git a/src/modules/sync/managerWindow.ts b/src/modules/sync/managerWindow.ts index bc33069..ec32561 100644 --- a/src/modules/sync/managerWindow.ts +++ b/src/modules/sync/managerWindow.ts @@ -90,9 +90,7 @@ export async function showSyncManager() { }) .setProp("onActivate", (ev) => { const noteIds = getSelectedNoteIds(); - noteIds.forEach((noteId) => - addon.hooks.onOpenNote(noteId, "builtin"), - ); + noteIds.forEach((noteId) => addon.hooks.onOpenNote(noteId, "builtin")); return true; }) .setProp( diff --git a/src/utils/convert.ts b/src/utils/convert.ts index 04465bd..b2563fe 100644 --- a/src/utils/convert.ts +++ b/src/utils/convert.ts @@ -21,12 +21,7 @@ import YAML = require("yamljs"); import { Root as HRoot, RootContent } from "hast"; import { ListContent, Root as MRoot } from "mdast"; import { Nodes } from "hast-util-to-text/lib"; -import { - fileExists, - formatPath, - jointPath, - randomString, -} from "./str"; +import { fileExists, formatPath, jointPath, randomString } from "./str"; import { copyEmbeddedImagesInHTML, importImageToNote,