Lint: comma-spacing (error) & comma-dangle (error) (#4200)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-02 17:38:20 -04:00
1 parent 02e77afcd1
commit c6dce043a7
406 files changed
+1590 -1580

No files matched your search

@@ -63,19 +63,19 @@ describe("Table tests", () => {
k: 1,
}, {
val: "c",
k: 2
k: 2,
}, {
val: "b.1",
k: 3
k: 3,
}, {
val: "b.2",
k: 4
k: 4,
}, {
val: "d",
k: 5
k: 5,
}, {
val: "b.2",
k: -10
k: -10,
}];
const dup = cloneDeep(i);
const expected = [
@@ -84,19 +84,19 @@ describe("Table tests", () => {
k: 1,
}, {
val: "b.1",
k: 3
k: 3,
}, {
val: "b.2",
k: 4
k: 4,
}, {
val: "b.2",
k: -10
k: -10,
}, {
val: "c",
k: 2
k: 2,
}, {
val: "d",
k: 5
k: 5,
},
];
@@ -110,19 +110,19 @@ describe("Table tests", () => {
k: 1,
}, {
val: "b.2",
k: -10
k: -10,
}, {
val: "c",
k: 2
k: 2,
}, {
val: "b.1",
k: 3
k: 3,
}, {
val: "b.2",
k: 4
k: 4,
}, {
val: "d",
k: 5
k: 5,
}];
const dup = cloneDeep(i);
const expected = [
@@ -131,19 +131,19 @@ describe("Table tests", () => {
k: 1,
}, {
val: "b.1",
k: 3
k: 3,
}, {
val: "b.2",
k: -10
k: -10,
}, {
val: "b.2",
k: 4
k: 4,
}, {
val: "c",
k: 2
k: 2,
}, {
val: "d",
k: 5
k: 5,
},
];
@@ -36,7 +36,7 @@ export function ReactTable({ columns, data, headless }: Props) {
minWidth: 20,
width: 100,
}),
[]
[],
);
const {
@@ -76,7 +76,7 @@ export function ReactTable({ columns, data, headless }: Props) {
</div>
);
},
[columns, prepareRow, rows]
[columns, prepareRow, rows],
);
return (
@@ -29,7 +29,7 @@ export interface TableStorageModel {
}
export const tableStorage = createStorage<TableStorageModel>("table_settings", {
sortParams: {}
sortParams: {},
});
export function getSortParams(tableId: string): Partial<TableSortParams> {
+2 -2
View File
@@ -153,7 +153,7 @@ export class Table<Item> extends React.Component<TableProps<Item>> {
_sorting: this.sortParams,
_nowrap: headElem.props.nowrap,
});
})
}),
});
}
@@ -205,7 +205,7 @@ export class Table<Item> extends React.Component<TableProps<Item>> {
renderRows() {
const {
noItems, virtual, customRowHeights, rowLineHeight, rowPadding, items,
getTableRow, selectedItemId, className, virtualHeight
getTableRow, selectedItemId, className, virtualHeight,
} = this.props;
const content = this.getContent();
let rows: React.ReactElement<TableRowProps>[] = content.filter(elem => elem.type === TableRow);