style: format loader files

This commit is contained in:
saberzero1
2026-07-23 01:19:21 +02:00
parent 69571de66e
commit de21613607
2 changed files with 285 additions and 1 deletions
+6 -1
View File
@@ -133,7 +133,12 @@ export function parsePluginSource(source: PluginSource): GitPluginSpec {
}
// Handle npm scoped packages (e.g. @quartz-community/syntax-highlighting)
if (typeof source === "string" && source.startsWith("@") && source.includes("/") && !source.includes(":")) {
if (
typeof source === "string" &&
source.startsWith("@") &&
source.includes("/") &&
!source.includes(":")
) {
return { name: source, repo: "", npmPackage: true }
}