Closed lukasreinfurt closed 2 months ago
General:
this.app
instead of window.app
Settings:
setHeading
instead of <h1>
etc.Security:
innerHTML
, outerHTML
, and insertAdjacentHTML
Resource management:
onunload
Commands:
Workspace
workspace.activeLeaf
directlyVault:
Vault.modify
Vault.process
instead of Vault.modify
FileManager.processFrontMatter
to modifying frontmatter of a noteapp.vault
over app.vault.adapter
normaliePath()
to clean up user-defined pathsEditor:
Styling:
TypeScript:
const
and let
over var
async
and await
over Promise
https://docs.obsidian.md/Plugins/Releasing/Plugin+guidelines