mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 09:41:23 +00:00
chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.
This commit is contained in:
@@ -246,13 +246,13 @@ export function renderTable(opts: RenderTableOptions): string {
|
||||
const flexOrder = columns
|
||||
.map((_c, i) => ({ i, w: widths[i] ?? 0 }))
|
||||
.filter(({ i }) => Boolean(columns[i]?.flex))
|
||||
.sort((a, b) => b.w - a.w)
|
||||
.toSorted((a, b) => b.w - a.w)
|
||||
.map((x) => x.i);
|
||||
|
||||
const nonFlexOrder = columns
|
||||
.map((_c, i) => ({ i, w: widths[i] ?? 0 }))
|
||||
.filter(({ i }) => !columns[i]?.flex)
|
||||
.sort((a, b) => b.w - a.w)
|
||||
.toSorted((a, b) => b.w - a.w)
|
||||
.map((x) => x.i);
|
||||
|
||||
const shrink = (order: number[], minWidths: number[]) => {
|
||||
|
||||
Reference in New Issue
Block a user