fix: lint

This commit is contained in:
windingwind 2024-04-09 15:42:17 +08:00
parent eaa28efbab
commit 1ac64c0618
7 changed files with 12 additions and 18 deletions

View File

@ -1,3 +1,3 @@
bn-context {
min-width: 360px;
}
min-width: 360px;
}

View File

@ -1,3 +1,3 @@
bn-details pane-header {
display: none;
}
display: none;
}

View File

@ -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 {

View File

@ -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));

View File

@ -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,
},

View File

@ -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(

View File

@ -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,