Skip to content

Commit bd0d505

Browse files
linter warnings
1 parent 372543c commit bd0d505

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/CollapsingType.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function CollapsingType({ header, namespace, name }: Props) {
2929
return <References typeName={typeName} />;
3030
}
3131
return <Details value="No additional info" />
32-
}, [name, namespace, schema.types]);
32+
}, [name, namespace, schema.types, references, typeName]);
3333

3434
return (
3535
<CollapsingDetails header={header} value=<code>{typeName}</code> cb={renderType} />

src/SchemaContext.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const crossReference = (schema: Model): Record<string, Record<string, string[]>>
2929
refs[typeName].endpoints = [];
3030
}
3131
const ref = `${source.name} ${comment}`
32-
if (refs[typeName].endpoints.indexOf(ref) == -1) {
32+
if (refs[typeName].endpoints.indexOf(ref) === -1) {
3333
refs[typeName].endpoints.push(ref);
3434
}
3535
}
@@ -43,7 +43,7 @@ const crossReference = (schema: Model): Record<string, Record<string, string[]>>
4343
refs[typeName].types = [];
4444
}
4545
const ref = `${source.namespace}::${source.name} ${comment}`;
46-
if (refs[typeName].types.indexOf(ref) == -1) {
46+
if (refs[typeName].types.indexOf(ref) === -1) {
4747
refs[typeName].types.push(ref);
4848
}
4949
}

src/Type.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import Details from './Details';
22
import CollapsingDetails from './CollapsingDetails';
3-
import CollapsingEndpoint from './CollapsingEndpoint';
4-
import CollapsingType from './CollapsingType';
53
import Description from './Description';
64
import Deprecation from './Deprecation';
75
import Interface from './Interface';

0 commit comments

Comments
 (0)