@hyperframes/lint 0.8.4 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.d.ts CHANGED
@@ -9,12 +9,24 @@ type HyperframeLintFinding = {
9
9
  fixHint?: string;
10
10
  snippet?: string;
11
11
  };
12
+ /**
13
+ * Where a single lint pass spent its time. Attributed per rule-source module
14
+ * ("gsap", "core", ...) rather than per rule, plus the single slowest rule as
15
+ * `<group>#<index-within-group>` so a pathological rule is locatable.
16
+ */
17
+ type LintTimings = {
18
+ totalMs: number;
19
+ groupMs: Record<string, number>;
20
+ slowestRule: string;
21
+ slowestRuleMs: number;
22
+ };
12
23
  type HyperframeLintResult = {
13
24
  ok: boolean;
14
25
  errorCount: number;
15
26
  warningCount: number;
16
27
  infoCount: number;
17
28
  findings: HyperframeLintFinding[];
29
+ timings?: LintTimings;
18
30
  };
19
31
  type HyperframeLinterOptions = {
20
32
  filePath?: string;