Skip to content

Commit 3138cc3

Browse files
committed
Work around new linting rules; Autoformatting
1 parent 00d6aa7 commit 3138cc3

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/apps/Analysis/state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export function loadProjectData(
107107

108108
try {
109109
const endPoint = `${config.apiUrl}/projects?page_size=500`;
110+
// @ts-expect-error this was fine before, new TS seems to be more strict
110111
const { results } = await ky.get(endPoint, { timeout: 200000 }).json();
111112

112113
dispatch({

src/apps/Map/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import {
1414
export type Side = typeof LEFT_SIDE | typeof RIGHT_SIDE | typeof BOTH_SIDES;
1515

1616
export type HBISide = {
17-
label: typeof HBI_STOPS[number]['label'];
18-
color: typeof HBI_STOPS[number]['color'];
17+
label: (typeof HBI_STOPS)[number]['label'];
18+
color: (typeof HBI_STOPS)[number]['color'];
1919
level?: HBILevel;
2020
};
2121

src/pages/Home/Berlin.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable jsx-a11y/control-has-associated-label */
12
import React from 'react';
23
import { useDispatch } from 'react-redux';
34
import styled from 'styled-components';

src/pages/Reports/apiservice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const STATUS =
7777

7878
// The type of any array item can be accessed using an array index, by
7979
// generalizing over all possible array indices we get all possible item types
80-
export type Status = typeof STATUS[number];
80+
export type Status = (typeof STATUS)[number];
8181

8282
type SubmitReportResponse = any;
8383

0 commit comments

Comments
 (0)