diff --git a/static/js/biomedical/landing/card.tsx b/static/js/biomedical/landing/card.tsx index ee4c9fa0b1..5feefa5e8f 100644 --- a/static/js/biomedical/landing/card.tsx +++ b/static/js/biomedical/landing/card.tsx @@ -57,8 +57,7 @@ const Text = styled.div` const Tag = styled.div` align-items: center; - background-color: ${(props) => - props.theme.tagBackgroundColor || "#C4EED0"}; + background-color: ${(props) => props.theme.tagBackgroundColor || "#C4EED0"}; border-radius: 28px; color: ${(props) => props.theme.tagLabelColor || "#072711"}; display: flex; diff --git a/static/js/chart/base.test.ts b/static/js/chart/base.test.ts index 287b12f67e..0e9248c2f5 100644 --- a/static/js/chart/base.test.ts +++ b/static/js/chart/base.test.ts @@ -80,7 +80,7 @@ test("shouldFillInValues", () => { beforeEach(() => { // JSDom does not define SVGTSpanElements, and use SVGElement instead. Defines // a shim for getComputedTextLength where each character is 1 px wide. - (window.SVGElement as any).prototype.getComputedTextLength = function () { + (window.SVGElement as any).prototype.getComputedTextLength = function (): number { // Title elements don't contribute to width if (this.tagName === "title") { return 0; @@ -101,12 +101,6 @@ beforeEach(() => { }); describe("wrap tests", () => { - interface TestData { - width: number; - label: string; - expectedLabels: string[]; - shouldOverflow: boolean; - } test.each` width | label | expectedLabels | shouldOverflow ${4} | ${"ab-d e f"} | ${["ab-", "d e", "f"]} | ${false} diff --git a/static/js/utils/tests/data_fetch_utils.test.ts b/static/js/utils/tests/data_fetch_utils.test.ts index cecf64d9ed..d717c2ea6d 100644 --- a/static/js/utils/tests/data_fetch_utils.test.ts +++ b/static/js/utils/tests/data_fetch_utils.test.ts @@ -14,6 +14,9 @@ * limitations under the License. */ +/* eslint-disable camelcase */ + + import axios from "axios"; import { when } from "jest-when"; diff --git a/static/nodejs_server/mock_data.ts b/static/nodejs_server/mock_data.ts index 2a30fe54a3..0ed57a94d4 100644 --- a/static/nodejs_server/mock_data.ts +++ b/static/nodejs_server/mock_data.ts @@ -14,8 +14,9 @@ * limitations under the License. */ -/* data used for mock functions for nodejs server tests. */ +/* eslint-disable camelcase */ +/* data used for mock functions for nodejs server tests. */ export const TIMELINE_NL_RESP = { data: { client: "ui_query", diff --git a/static/nodejs_server/tiles/disaster_map_tile.ts b/static/nodejs_server/tiles/disaster_map_tile.ts index 03d838e00f..da33a10fe2 100644 --- a/static/nodejs_server/tiles/disaster_map_tile.ts +++ b/static/nodejs_server/tiles/disaster_map_tile.ts @@ -18,8 +18,6 @@ * Functions for getting results for a disaster map tile */ -import _ from "lodash"; - import { fetchDisasterEventData } from "../../js/components/subject_page/disaster_event_block"; import { DisasterEventMapTilePropType, diff --git a/static/nodejs_server/tiles/highlight_tile.ts b/static/nodejs_server/tiles/highlight_tile.ts index 5b640aecad..458b2a0e13 100644 --- a/static/nodejs_server/tiles/highlight_tile.ts +++ b/static/nodejs_server/tiles/highlight_tile.ts @@ -18,8 +18,6 @@ * Functions for getting results for a highlight tile */ -import _ from "lodash"; - import { fetchData, getDescription, diff --git a/static/nodejs_server/tiles/ranking_tile.ts b/static/nodejs_server/tiles/ranking_tile.ts index 867b3a0458..f254dea1b8 100644 --- a/static/nodejs_server/tiles/ranking_tile.ts +++ b/static/nodejs_server/tiles/ranking_tile.ts @@ -109,10 +109,6 @@ function getRankingUnitResult( place: string, enclosedPlaceType: string, statVarSpec: StatVarSpec[], - urlRoot: string, - useChartUrl: boolean, - apiRoot: string, - apikey?: string ): TileResult { const { topPoints, bottomPoints } = getRankingUnitPoints( tileConfig?.rankingTileSpec,