Fixes #539 linter support, now checking YAML formats

This commit is contained in:
Zef Hemel
2023-11-21 16:24:20 +01:00
parent aa5bff548d
commit 2aed9e5685
9 changed files with 230 additions and 36 deletions
+1
View File
@@ -7,6 +7,7 @@ export type AppEvent =
| "editor:complete"
| "minieditor:complete"
| "slash:complete"
| "editor:lint"
| "page:load"
| "editor:init"
| "editor:pageLoaded" // args: pageName, previousPage, isSynced
+7
View File
@@ -133,3 +133,10 @@ export type CodeWidgetContent = {
markdown?: string;
script?: string;
};
export type LintDiagnostic = {
from: number;
to: number;
severity: "error" | "warning" | "info" | "hint";
message: string;
};