Skip to content

Commit 993ff22

Browse files
committed
refactor(ui): Update eslint and rearrange imports
1 parent 045c76a commit 993ff22

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

datahub-web-react/.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ module.exports = {
4747
},
4848
],
4949
'vitest/prefer-to-be': 'off',
50+
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false }],
5051
},
5152
settings: {
5253
react: {

datahub-web-react/src/app/lineage/types.ts

+14-18
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ import {
33
Chart,
44
Dashboard,
55
DataJob,
6+
DataPlatform,
67
Dataset,
8+
Entity,
79
EntityType,
8-
MlFeatureTable,
9-
MlPrimaryKey,
10+
FineGrainedLineage,
11+
Health,
12+
InputFields,
13+
LineageRelationship,
14+
Maybe,
1015
MlFeature,
16+
MlFeatureTable,
1117
MlModel,
1218
MlModelGroup,
13-
Maybe,
14-
Status,
15-
DataPlatform,
16-
FineGrainedLineage,
19+
MlPrimaryKey,
1720
SchemaMetadata,
18-
InputFields,
19-
Entity,
20-
LineageRelationship,
2121
SiblingProperties,
22-
Health,
22+
Status,
2323
} from '../../types.generated';
2424

2525
export type EntitySelectParams = {
@@ -35,13 +35,11 @@ export type LineageExpandParams = {
3535

3636
export type FetchedEntity = {
3737
urn: string;
38-
name: string;
39-
// name to be shown on expansion if available
38+
name: string; // name to be shown on expansion if available
4039
expandedName?: string;
4140
type: EntityType;
4241
subtype?: string;
43-
icon?: string;
44-
// children?: Array<string>;
42+
icon?: string; // children?: Array<string>;
4543
upstreamChildren?: Array<EntityAndType>;
4644
upstreamRelationships?: Array<LineageRelationship>;
4745
numUpstreamChildren?: number;
@@ -62,15 +60,13 @@ export type FetchedEntity = {
6260

6361
export type NodeData = {
6462
urn?: string;
65-
name: string;
66-
// name to be shown on expansion if available
63+
name: string; // name to be shown on expansion if available
6764
expandedName?: string;
6865
type?: EntityType;
6966
subtype?: string;
7067
children?: Array<NodeData>;
7168
unexploredChildren?: number;
72-
icon?: string;
73-
// Hidden children are unexplored but in the opposite direction of the flow of the graph.
69+
icon?: string; // Hidden children are unexplored but in the opposite direction of the flow of the graph.
7470
// Currently our visualization does not support expanding in two directions
7571
countercurrentChildrenUrns?: string[];
7672
platform?: DataPlatform;

0 commit comments

Comments
 (0)