Skip to content

Commit 1d1cfb9

Browse files
committed
chore: linting issues
1 parent 4e49cbf commit 1d1cfb9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/components/JsonSchemaViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class JsonSchemaViewerComponent extends React.PureComponent<IJsonSchemaVi
5454
if (prevProps.schema !== this.props.schema || prevProps.dereferencedSchema !== this.props.dereferencedSchema) {
5555
runInAction(() => {
5656
this.treeStore.nodes = Array.from(
57-
renderSchema(this.props.dereferencedSchema || this.props.schema, 0, { path: [] }, { mergeAllOf: true })
57+
renderSchema(this.props.dereferencedSchema || this.props.schema, 0, { path: [] }, { mergeAllOf: true }),
5858
);
5959
});
6060
}

src/components/SchemaTree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const SchemaTree = observer<ISchemaTree>(props => {
2929

3030
const rowRenderer = React.useCallback(
3131
(node, rowOptions) => <SchemaRow node={node} rowOptions={rowOptions} {...itemData} />,
32-
[itemData]
32+
[itemData],
3333
);
3434

3535
return (

src/utils/__tests__/renderSchema.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('renderSchema util', () => {
1717
['array-of-refs.json', ''],
1818
])('should match %s', (schema, dereferenced) => {
1919
expect(
20-
Array.from(renderSchema(JSON.parse(fs.readFileSync(path.resolve(BASE_PATH, schema), 'utf-8'))))
20+
Array.from(renderSchema(JSON.parse(fs.readFileSync(path.resolve(BASE_PATH, schema), 'utf-8')))),
2121
).toMatchSnapshot();
2222
});
2323
});

src/utils/renderSchema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Walker = (
1616
schema: JSONSchema4,
1717
level?: number,
1818
meta?: ITreeNodeMeta,
19-
options?: { mergeAllOf?: boolean }
19+
options?: { mergeAllOf?: boolean },
2020
) => IterableIterator<SchemaTreeListNode>;
2121

2222
const getProperties: Walker = function*(schema, level = 0, meta) {
@@ -48,7 +48,7 @@ const getPatternProperties: Walker = function*(schema, level = 0, meta) {
4848
export const renderSchema: Walker = function*(schema, level = 0, meta = { path: [] }, options = { mergeAllOf: false }) {
4949
if (typeof schema !== 'object' || schema === null) {
5050
throw new TypeError(
51-
`Expected schema to be an "object" but received ${schema === null ? '"null"' : `a "${typeof schema}"`}`
51+
`Expected schema to be an "object" but received ${schema === null ? '"null"' : `a "${typeof schema}"`}`,
5252
);
5353
}
5454

0 commit comments

Comments
 (0)