Skip to content

Commit 6268e5e

Browse files
committed
addressing linter again
1 parent 2d65c99 commit 6268e5e

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

client/eslint.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,23 @@ export default [
3939
version: "detect"
4040
}
4141
}
42+
},
43+
{
44+
files: ["**/*.test.{ts,tsx}", "**/*.spec.{ts,tsx}"],
45+
languageOptions: {
46+
globals: {
47+
...globals.browser,
48+
...globals.node,
49+
expect: "readonly",
50+
describe: "readonly",
51+
it: "readonly",
52+
test: "readonly",
53+
beforeEach: "readonly",
54+
afterEach: "readonly",
55+
beforeAll: "readonly",
56+
afterAll: "readonly",
57+
vi: "readonly"
58+
}
59+
}
4260
}
4361
];

client/src/components/patientData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function PatientData() {
1919
.then(data => {
2020
window.location.href = data;
2121
})
22-
.catch(error => {
22+
.catch(() => {
2323
window.location.href = "/";
2424
});
2525
console.log(authUrlResponseData);

client/src/components/records.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,25 @@ export type ErrorResponse = {
1717
export default function Records() {
1818
const [records, setRecords] = useState<EOBRecord[]>([]);
1919
const [message, setMessage] = useState<ErrorResponse>();
20+
21+
interface ResourceData {
22+
resource: {
23+
id: string;
24+
item: Array<{
25+
productOrService?: {
26+
coding?: Array<{
27+
code?: string;
28+
display?: string;
29+
}>;
30+
};
31+
adjudication?: Array<{
32+
amount?: {
33+
value?: number | string;
34+
};
35+
}>;
36+
}>;
37+
};
38+
}
2039
/*
2140
* DEVELOPER NOTES:
2241
* Here we are parsing through the different PDE Claim records
@@ -40,7 +59,7 @@ export default function Records() {
4059
return res.json();
4160
}).then(eobData => {
4261
if (eobData.entry) {
43-
const records: EOBRecord[] = eobData.entry.map((resourceData: any) => {
62+
const records: EOBRecord[] = eobData.entry.map((resourceData: ResourceData) => {
4463
const resource = resourceData.resource;
4564
return {
4665
id: resource.id,

0 commit comments

Comments
 (0)