refactor: finish lint cleanup

This commit is contained in:
morluto
2026-07-18 05:49:14 +00:00
parent c6ee0049c4
commit 2bea40571d
515 changed files with 13248 additions and 1635 deletions
+6 -5
View File
@@ -3,7 +3,10 @@ import {
webBundleAnalysisSchema,
type WebBundleAnalysis,
} from "./webBundleAnalysis.js";
import type { AnalysisAccumulator, IncludedScript } from "./webBundleAnalyzerInspection.js";
import type {
AnalysisAccumulator,
IncludedScript,
} from "./webBundleAnalyzerInspection.js";
export const buildWebBundleAnalysis = (
inspection: WebPageInspection,
@@ -67,15 +70,13 @@ const buildCaptureObservation = (
});
const sourceArtifact = (script: IncludedScript) => {
if (!script.source.included)
throw new TypeError("Filtered source changed");
if (!script.source.included) throw new TypeError("Filtered source changed");
const { text: _text, ...artifact } = script.source.artifact;
return { ...artifact, text_available: true };
};
const chunkNode = (script: IncludedScript) => {
if (!script.source.included)
throw new TypeError("Filtered source changed");
if (!script.source.included) throw new TypeError("Filtered source changed");
return {
script_key: script.script_key,
url: script.url,