Skip to content

Commit 3ea1081

Browse files
Fix linting errors
1 parent 62e00c3 commit 3ea1081

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/arrayToTree.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ describe('arrayToTree', () => {
88
{ id: '31', parentId: '4', custom: '12' },
99
{ id: '1941', parentId: '418', custom: 'de' },
1010
{ id: '1', parentId: '418', custom: 'ZZZz' },
11-
{ id: '418', parentId: null, custom: 'ü'},
11+
{ id: '418', parentId: null, custom: 'ü' },
1212
])).to.deep.equal([
1313
{ data: { id: '4', parentId: null, custom: 'abc' }, children: [
1414
{ data: { id: '31', parentId: '4', custom: '12' }, children: [] },
1515
] },
16-
{ data: { id: '418', parentId: null, custom: 'ü'}, children: [
16+
{ data: { id: '418', parentId: null, custom: 'ü' }, children: [
1717
{ data: { id: '1941', parentId: '418', custom: 'de' }, children: [] },
1818
{ data: { id: '1', parentId: '418', custom: 'ZZZz' }, children: [] },
1919
] },
@@ -27,14 +27,14 @@ describe('arrayToTree', () => {
2727
{ num: '31', ref: '4', custom: '12' },
2828
{ num: '1941', ref: '418', custom: 'de' },
2929
{ num: '1', ref: '418', custom: 'ZZZz' },
30-
{ num: '418', ref: null, custom: 'ü'},
30+
{ num: '418', ref: null, custom: 'ü' },
3131
] as any),
3232
{ id: 'num', parentId: 'ref' },
3333
)).to.deep.equal([
3434
{ data: { num: '4', ref: null, custom: 'abc' }, children: [
3535
{ data: { num: '31', ref: '4', custom: '12' }, children: [] },
3636
] },
37-
{ data: { num: '418', ref: null, custom: 'ü'}, children: [
37+
{ data: { num: '418', ref: null, custom: 'ü' }, children: [
3838
{ data: { num: '1941', ref: '418', custom: 'de' }, children: [] },
3939
{ data: { num: '1', ref: '418', custom: 'ZZZz' }, children: [] },
4040
] },

src/arrayToTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
export interface Item {
22
id: string
3-
parentId: string|null,
3+
parentId: string | null,
44
[key: string]: any,
55
}
66

77
export interface TreeItem {
8-
data: Item|null
8+
data: Item | null
99
children: TreeItem[]
1010
}
1111

0 commit comments

Comments
 (0)