From aac1ce34716297cd781266440ad0067344ca7bcf Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Tue, 13 Feb 2024 15:46:47 -0500 Subject: [PATCH] fix lints --- packages/ott-vis-datasource/tsconfig.json | 2 +- packages/ott-vis/src/aggregate.spec.ts | 45 +++++++----------- packages/ott-vis/src/components/CorePanel.tsx | 46 +++++++------------ packages/ott-vis/tsconfig.json | 2 +- 4 files changed, 34 insertions(+), 61 deletions(-) diff --git a/packages/ott-vis-datasource/tsconfig.json b/packages/ott-vis-datasource/tsconfig.json index b2bdcd2c0..3e04c4bff 100644 --- a/packages/ott-vis-datasource/tsconfig.json +++ b/packages/ott-vis-datasource/tsconfig.json @@ -4,6 +4,6 @@ "strict": true, "typeRoots": ["../../node_modules/@types"], "esModuleInterop": true, - "jsx": "react", + "jsx": "react" } } diff --git a/packages/ott-vis/src/aggregate.spec.ts b/packages/ott-vis/src/aggregate.spec.ts index 9b561cf84..f996bf562 100644 --- a/packages/ott-vis/src/aggregate.spec.ts +++ b/packages/ott-vis/src/aggregate.spec.ts @@ -10,24 +10,20 @@ const sampleSystemState: SystemState = [ id: "2bd5e4a7-14f6-4da4-bedd-72946864a7bf", region: "ewr", rooms: [ - {name: "foo", clients: 2}, - {name: "bar", clients: 0}, + { name: "foo", clients: 2 }, + { name: "bar", clients: 0 }, ], }, { id: "419580cb-f576-4314-8162-45340c94bae1", region: "ewr", - rooms: [ - {name: "baz", clients: 3}, - ] + rooms: [{ name: "baz", clients: 3 }], }, { id: "0c85b46e-d343-46a3-ae4f-5f2aa1a8bdac", region: "cdg", - rooms: [ - {name: "qux", clients: 0}, - ] - } + rooms: [{ name: "qux", clients: 0 }], + }, ], }, { @@ -38,24 +34,20 @@ const sampleSystemState: SystemState = [ id: "2bd5e4a7-14f6-4da4-bedd-72946864a7bf", region: "ewr", rooms: [ - {name: "foo", clients: 1}, - {name: "bar", clients: 2}, + { name: "foo", clients: 1 }, + { name: "bar", clients: 2 }, ], }, { id: "419580cb-f576-4314-8162-45340c94bae1", region: "ewr", - rooms: [ - {name: "baz", clients: 0}, - ] + rooms: [{ name: "baz", clients: 0 }], }, { id: "0c85b46e-d343-46a3-ae4f-5f2aa1a8bdac", region: "cdg", - rooms: [ - {name: "qux", clients: 0}, - ] - } + rooms: [{ name: "qux", clients: 0 }], + }, ], }, { @@ -66,27 +58,23 @@ const sampleSystemState: SystemState = [ id: "2bd5e4a7-14f6-4da4-bedd-72946864a7bf", region: "ewr", rooms: [ - {name: "foo", clients: 0}, - {name: "bar", clients: 0}, + { name: "foo", clients: 0 }, + { name: "bar", clients: 0 }, ], }, { id: "419580cb-f576-4314-8162-45340c94bae1", region: "ewr", - rooms: [ - {name: "baz", clients: 0}, - ] + rooms: [{ name: "baz", clients: 0 }], }, { id: "0c85b46e-d343-46a3-ae4f-5f2aa1a8bdac", region: "cdg", - rooms: [ - {name: "qux", clients: 4}, - ] - } + rooms: [{ name: "qux", clients: 4 }], + }, ], }, -] +]; describe("aggregation helpers", () => { it("counts room clients", () => { @@ -106,4 +94,3 @@ describe("aggregation helpers", () => { }); }); }); - diff --git a/packages/ott-vis/src/components/CorePanel.tsx b/packages/ott-vis/src/components/CorePanel.tsx index b49619378..060d05ac4 100644 --- a/packages/ott-vis/src/components/CorePanel.tsx +++ b/packages/ott-vis/src/components/CorePanel.tsx @@ -37,24 +37,20 @@ const sampleSystemState: SystemState = [ id: "2bd5e4a7-14f6-4da4-bedd-72946864a7bf", region: "ewr", rooms: [ - {name: "foo", clients: 2}, - {name: "bar", clients: 0}, + { name: "foo", clients: 2 }, + { name: "bar", clients: 0 }, ], }, { id: "419580cb-f576-4314-8162-45340c94bae1", region: "ewr", - rooms: [ - {name: "baz", clients: 3}, - ] + rooms: [{ name: "baz", clients: 3 }], }, { id: "0c85b46e-d343-46a3-ae4f-5f2aa1a8bdac", region: "cdg", - rooms: [ - {name: "qux", clients: 0}, - ] - } + rooms: [{ name: "qux", clients: 0 }], + }, ], }, { @@ -65,24 +61,20 @@ const sampleSystemState: SystemState = [ id: "2bd5e4a7-14f6-4da4-bedd-72946864a7bf", region: "ewr", rooms: [ - {name: "foo", clients: 1}, - {name: "bar", clients: 2}, + { name: "foo", clients: 1 }, + { name: "bar", clients: 2 }, ], }, { id: "419580cb-f576-4314-8162-45340c94bae1", region: "ewr", - rooms: [ - {name: "baz", clients: 0}, - ] + rooms: [{ name: "baz", clients: 0 }], }, { id: "0c85b46e-d343-46a3-ae4f-5f2aa1a8bdac", region: "cdg", - rooms: [ - {name: "qux", clients: 0}, - ] - } + rooms: [{ name: "qux", clients: 0 }], + }, ], }, { @@ -93,29 +85,23 @@ const sampleSystemState: SystemState = [ id: "2bd5e4a7-14f6-4da4-bedd-72946864a7bf", region: "ewr", rooms: [ - {name: "foo", clients: 0}, - {name: "bar", clients: 0}, + { name: "foo", clients: 0 }, + { name: "bar", clients: 0 }, ], }, { id: "419580cb-f576-4314-8162-45340c94bae1", region: "ewr", - rooms: [ - {name: "baz", clients: 0}, - ] + rooms: [{ name: "baz", clients: 0 }], }, { id: "0c85b46e-d343-46a3-ae4f-5f2aa1a8bdac", region: "cdg", - rooms: [ - {name: "qux", clients: 4}, - ] - } + rooms: [{ name: "qux", clients: 4 }], + }, ], }, -] - - +]; export const CorePanel: React.FC = ({ options, data, width, height }) => { const styles = useStyles2(getStyles); diff --git a/packages/ott-vis/tsconfig.json b/packages/ott-vis/tsconfig.json index b2bdcd2c0..3e04c4bff 100644 --- a/packages/ott-vis/tsconfig.json +++ b/packages/ott-vis/tsconfig.json @@ -4,6 +4,6 @@ "strict": true, "typeRoots": ["../../node_modules/@types"], "esModuleInterop": true, - "jsx": "react", + "jsx": "react" } }