Skip to content

Commit

Permalink
More lint fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
gmechali committed Dec 16, 2024
1 parent 9b84f9f commit e2a475d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 18 deletions.
3 changes: 1 addition & 2 deletions static/js/biomedical/landing/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 1 addition & 7 deletions static/js/chart/base.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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}
Expand Down
3 changes: 3 additions & 0 deletions static/js/utils/tests/data_fetch_utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/

/* eslint-disable camelcase */


import axios from "axios";
import { when } from "jest-when";

Expand Down
3 changes: 2 additions & 1 deletion static/nodejs_server/mock_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions static/nodejs_server/tiles/disaster_map_tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions static/nodejs_server/tiles/highlight_tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
* Functions for getting results for a highlight tile
*/

import _ from "lodash";

import {
fetchData,
getDescription,
Expand Down
4 changes: 0 additions & 4 deletions static/nodejs_server/tiles/ranking_tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e2a475d

Please sign in to comment.