mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-25 16:28:12 +08:00
temp fixes for TS lint (#2352)
This commit is contained in:
@@ -18,11 +18,13 @@ function caseInsensitiveCompare(a: any, b: any) {
|
||||
return textA < textB ? -1 : textA > textB ? 1 : 0;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any --- FIXME: disabled temporarily on migrate to TS.
|
||||
const catLabelSort = (isUserAnno: boolean, values: any[]): any[] => {
|
||||
/* this sort could be memoized for perf */
|
||||
|
||||
const strings: string[] = [];
|
||||
const ints: number[] = [];
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any --- FIXME: disabled temporarily on migrate to TS.
|
||||
const unassignedOrNaN: any = [];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any --- FIXME: disabled temporarily on migrate to TS.
|
||||
@@ -42,6 +44,7 @@ const catLabelSort = (isUserAnno: boolean, values: any[]): any[] => {
|
||||
ints.sort((a, b) => +a - +b);
|
||||
unassignedOrNaN.sort(caseInsensitiveCompare);
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any --- FIXME: disabled temporarily on migrate to TS.
|
||||
return (<any>ints).concat(strings, unassignedOrNaN);
|
||||
};
|
||||
|
||||
|
||||
@@ -70,6 +70,7 @@ export function createCategorySummaryFromDfCol(dfCol: any, colSchema: any) {
|
||||
const { categories: allCategoryValues } = colSchema;
|
||||
const categoryValues = allCategoryValues;
|
||||
const categoryValueCounts = allCategoryValues.map(
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- - FIXME: disabled temporarily on migrate to TS.
|
||||
(cat: any) => summary.categoryCounts.get(cat) ?? 0
|
||||
);
|
||||
const categoryValueIndices = new Map(
|
||||
|
||||
Reference in New Issue
Block a user