From 440ae8f39f28b57c2deedd9020e201ec374619fd Mon Sep 17 00:00:00 2001 From: Michael Mrowetz Date: Mon, 20 Mar 2017 22:47:13 +0900 Subject: [PATCH] fix linting --- src/ts/main.ts | 2 +- src/ts/transformers/har.ts | 6 +++--- src/ts/waterfall/sub-components/svg-marks.ts | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ts/main.ts b/src/ts/main.ts index 21e53365..a2ffdac9 100755 --- a/src/ts/main.ts +++ b/src/ts/main.ts @@ -62,7 +62,7 @@ function PerfCascade(waterfallDocsData: WaterfallDocs, chartOptions: Partial = {}): SVGSVGElement { const harTransformerOptions: HarTransformerOptions = { ...defaultHarTransformerOptions, - ...options as Partial + ...options as Partial, }; const data = HarTransformer.transformDoc(harData, harTransformerOptions); if (typeof options.onParsed === "function") { diff --git a/src/ts/transformers/har.ts b/src/ts/transformers/har.ts index 32166eef..9564bc3b 100644 --- a/src/ts/transformers/har.ts +++ b/src/ts/transformers/har.ts @@ -249,7 +249,7 @@ const buildDetailTimingBlocks = (startRelative: number, harEntry: Entry): Waterf * @param {number} startRelative - Number of milliseconds since page load started (`page.startedDateTime`) * @returns {Object} */ -const getTimePair =(key: string, harEntry: Entry, collect: WaterfallEntryTiming[], startRelative: number) => { +const getTimePair = (key: string, harEntry: Entry, collect: WaterfallEntryTiming[], startRelative: number) => { let wptKey; switch (key) { case "wait": wptKey = "ttfb"; break; @@ -266,7 +266,7 @@ const getTimePair =(key: string, harEntry: Entry, collect: WaterfallEntryTiming[ "end": Math.round(end), "start": Math.round(start), }; -} +}; /** * Helper to create a requests `WaterfallResponseDetails` @@ -284,4 +284,4 @@ const createResponseDetails = (entry: Entry, indicators: WaterfallEntryIndicator requestType, statusCode: entry.response.status, }; -} +}; diff --git a/src/ts/waterfall/sub-components/svg-marks.ts b/src/ts/waterfall/sub-components/svg-marks.ts index 5c700429..51022f30 100644 --- a/src/ts/waterfall/sub-components/svg-marks.ts +++ b/src/ts/waterfall/sub-components/svg-marks.ts @@ -105,7 +105,6 @@ export function createMarks(context: Context, marks: Mark[]) { return marksHolder; } - /** * Converts a `Mark` with a duration (e.g. a UserTiming with `startTimer` and `endTimer`) into a rect. * @param {Context} context Execution context object