Skip to content

Commit

Permalink
Work around new linting rules; Autoformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Aug 7, 2024
1 parent 00d6aa7 commit 3138cc3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/apps/Analysis/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export function loadProjectData(

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

dispatch({
Expand Down
4 changes: 2 additions & 2 deletions src/apps/Map/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
export type Side = typeof LEFT_SIDE | typeof RIGHT_SIDE | typeof BOTH_SIDES;

export type HBISide = {
label: typeof HBI_STOPS[number]['label'];
color: typeof HBI_STOPS[number]['color'];
label: (typeof HBI_STOPS)[number]['label'];
color: (typeof HBI_STOPS)[number]['color'];
level?: HBILevel;
};

Expand Down
1 change: 1 addition & 0 deletions src/pages/Home/Berlin.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jsx-a11y/control-has-associated-label */
import React from 'react';
import { useDispatch } from 'react-redux';
import styled from 'styled-components';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Reports/apiservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const STATUS =

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

type SubmitReportResponse = any;

Expand Down

0 comments on commit 3138cc3

Please sign in to comment.