Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJamesC committed Sep 11, 2023
1 parent e10c7e1 commit 7606d84
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 28 deletions.
2 changes: 0 additions & 2 deletions reports/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { useReport } from "./capability/useReport";
import { CustomThemeProvider } from "./ThemeContext";

function App() {
// FIXME use the report from the config
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const configuration = JSON.parse(
document.getElementById("interuss_report_json")?.innerHTML || "{}"
);
Expand Down
19 changes: 0 additions & 19 deletions reports/src/ThemeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,32 +60,13 @@ export const CustomThemeProvider = ({
);

const globalStyles: Interpolation<Theme> = (theme) => {
const borderColor =
theme.palette.mode === "light"
? theme.palette.grey[500]
: theme.palette.grey[700];
return {
body: {
backgroundColor:
theme.palette.mode === "light"
? theme.palette.grey[100]
: theme.palette.grey[900],
},
// table: {
// borderCollapse: "collapse",
// border: `1px solid ${borderColor}`,
// },
// th: {
// border: `1px solid ${borderColor}`,
// backgroundColor:
// theme.palette.mode === "light"
// ? theme.palette.grey[300]
// : theme.palette.grey[800],
// },
// td: {
// border: `1px solid ${borderColor}`,
// padding: 8,
// },
};
};

Expand Down
2 changes: 1 addition & 1 deletion reports/src/capability/reportNavigation.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link, Typography } from "@mui/material";
import { Link } from "@mui/material";
import { Link as RouterLink, RouteObject } from "react-router-dom";
import { Capability } from "./capabilityTypes";
import { CapabilityTable } from "./CapabilityTable";
Expand Down
3 changes: 1 addition & 2 deletions reports/src/capability/useReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { useState, useEffect, useMemo } from "react";
import { ReportsReportTestRunReport } from "../types/TestRunReport";
import { RouteObject } from "react-router-dom";
import { parseReport } from "./reportParser";
import { getNavFromCapability, getNavFromReport } from "./reportNavigation";
import { parse } from "jsonpath";
import { getNavFromCapability } from "./reportNavigation";

const reportUrl = "/report_uspace.json";

Expand Down
8 changes: 4 additions & 4 deletions reports/src/types/TestRunReport.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ export interface ReportsReportTestStepReport {
/**
* Description of HTTP requests relevant to this issue
*/
queries?: HttpsGithubComInterussMonitoringBlobMainSchemasMonitoringMonitorlibFetchQueryJson[] | null;
queries?:
| HttpsGithubComInterussMonitoringBlobMainSchemasMonitoringMonitorlibFetchQueryJson[]
| null;
/**
* Time at which the test step started
*/
Expand Down Expand Up @@ -1135,9 +1137,7 @@ export interface ResourcesDefinitionsResourceCollection {
* Path to content that replaces the $ref
*/
// $ref?: string;
[
k: string
]: ResourcesDefinitionsResourceDeclaration;
[k: string]: ResourcesDefinitionsResourceDeclaration;
};
[k: string]: unknown;
}
Expand Down

0 comments on commit 7606d84

Please sign in to comment.