chore: bump oxlint & enable more supported rules (#14769)

This commit is contained in:
DarkSky
2026-04-03 03:36:52 +08:00
committed by GitHub
parent cdadf8588a
commit 233004f867
285 changed files with 937 additions and 1983 deletions
@@ -22,7 +22,7 @@ const SIZE_LIST: SizeItem[] = [
] as const;
@requiredProperties({
size$: PropTypes.object,
sizeSignal: PropTypes.object,
})
export class SizeDropdownMenu extends SignalWatcher(
WithDisposable(LitElement)
@@ -68,7 +68,7 @@ export class SizeDropdownMenu extends SignalWatcher(
accessor sizes: readonly SizeItem[] = SIZE_LIST;
@property({ attribute: false })
accessor size$!: Signal<number> | ReadonlySignal<number>;
accessor sizeSignal!: Signal<number> | ReadonlySignal<number>;
@property({ attribute: false })
accessor maxSize: number = MAX_SIZE;
@@ -144,7 +144,7 @@ export class SizeDropdownMenu extends SignalWatcher(
type,
icon,
label,
size$: { value: size },
sizeSignal: { value: size },
} = this;
const isCheckType = type === 'check';
const placeholder = format?.(Math.trunc(size)) ?? Math.trunc(size);