From 6566622f4be633bd6ea61be5e1d39d3568f10f86 Mon Sep 17 00:00:00 2001 From: Adrian Mroz Date: Wed, 23 Nov 2022 15:02:16 +0100 Subject: [PATCH] lint stuff --- .../line-chart/charts/charts-per-series/series-chart.tsx | 2 +- src/common/utils/rules/split-adjustments.mocha.ts | 2 +- src/common/utils/url-hash-converter/url-hash-converter.mocha.ts | 2 +- .../view-definitions/version-4/view-definition-converter-4.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/visualizations/line-chart/charts/charts-per-series/series-chart.tsx b/src/client/visualizations/line-chart/charts/charts-per-series/series-chart.tsx index cc74b88cb..de9f71a47 100644 --- a/src/client/visualizations/line-chart/charts/charts-per-series/series-chart.tsx +++ b/src/client/visualizations/line-chart/charts/charts-per-series/series-chart.tsx @@ -21,6 +21,7 @@ import { ConcreteSeries } from "../../../../../common/models/series/concrete-ser import { Stage } from "../../../../../common/models/stage/stage"; import { VisMeasureLabel } from "../../../../components/vis-measure-label/vis-measure-label"; import { selectFirstSplitDataset, selectMainDatum, selectSplitDatums } from "../../../../utils/dataset/selectors/selectors"; +import { useSettingsContext } from "../../../../views/cube-view/settings-context"; import { BaseChart } from "../../base-chart/base-chart"; import { ColoredSeriesChartLine } from "../../chart-line/colored-series-chart-line"; import { SingletonSeriesChartLine } from "../../chart-line/singleton-series-chart-line"; @@ -31,7 +32,6 @@ import { extentAcrossSplits } from "../../utils/extent"; import { ContinuousTicks } from "../../utils/pick-x-axis-ticks"; import { getContinuousSplit, getNominalSplit, hasNominalSplit } from "../../utils/splits"; import { SeriesHoverContent } from "./series-hover-content"; -import { useSettingsContext } from "../../../../views/cube-view/settings-context"; interface SeriesChartProps { chartId: string; diff --git a/src/common/utils/rules/split-adjustments.mocha.ts b/src/common/utils/rules/split-adjustments.mocha.ts index 95af3ac6f..e34da7286 100644 --- a/src/common/utils/rules/split-adjustments.mocha.ts +++ b/src/common/utils/rules/split-adjustments.mocha.ts @@ -16,6 +16,7 @@ import { expect } from "chai"; import { $ } from "plywood"; +import { DEFAULT_COLORS } from "../../models/colors/colors"; import { createDimension, Dimension } from "../../models/dimension/dimension"; import { SeriesList } from "../../models/series-list/series-list"; import { measureSeries } from "../../models/series/series.fixtures"; @@ -28,7 +29,6 @@ import { adjustLimit, adjustSort } from "./split-adjustments"; -import { DEFAULT_COLORS } from "../../models/colors/colors"; describe("Split adjustment utilities", () => { describe("adjustContinuousTimeSplit", () => { diff --git a/src/common/utils/url-hash-converter/url-hash-converter.mocha.ts b/src/common/utils/url-hash-converter/url-hash-converter.mocha.ts index 2ec5629d6..92f3e6a8b 100644 --- a/src/common/utils/url-hash-converter/url-hash-converter.mocha.ts +++ b/src/common/utils/url-hash-converter/url-hash-converter.mocha.ts @@ -15,6 +15,7 @@ */ import { expect } from "chai"; +import { clientAppSettings } from "../../models/app-settings/app-settings.fixtures"; import { wikiClientDataCube } from "../../models/data-cube/data-cube.fixtures"; import { Essence } from "../../models/essence/essence"; import { EssenceFixtures } from "../../models/essence/essence.fixtures"; @@ -22,7 +23,6 @@ import { ViewDefinitionVersion } from "../../view-definitions"; import { hashToObject } from "../../view-definitions/hash-conversions"; import { getHashSegments, urlHashConverter } from "./url-hash-converter"; import { UrlHashConverterFixtures } from "./url-hash-converter.fixtures"; -import { clientAppSettings } from "../../models/app-settings/app-settings.fixtures"; interface HashEssenceCase { version: ViewDefinitionVersion; diff --git a/src/common/view-definitions/version-4/view-definition-converter-4.ts b/src/common/view-definitions/version-4/view-definition-converter-4.ts index df55a3f3e..94c406ee7 100644 --- a/src/common/view-definitions/version-4/view-definition-converter-4.ts +++ b/src/common/view-definitions/version-4/view-definition-converter-4.ts @@ -16,6 +16,7 @@ import { Timezone } from "chronoshift"; import { List, OrderedSet } from "immutable"; +import { ClientAppSettings } from "../../models/app-settings/app-settings"; import { ClientDataCube } from "../../models/data-cube/data-cube"; import { Essence } from "../../models/essence/essence"; import { Filter } from "../../models/filter/filter"; @@ -29,7 +30,6 @@ import { seriesDefinitionConverter } from "./series-definition"; import { splitConverter } from "./split-definition"; import { ViewDefinition4 } from "./view-definition-4"; import { fromViewDefinition, toViewDefinition } from "./visualization-settings-converter"; -import { ClientAppSettings } from "../../models/app-settings/app-settings"; export class ViewDefinitionConverter4 implements ViewDefinitionConverter { version = 4;