chore: fix eslint in blocksuite (#9232)

This commit is contained in:
Saul-Mirone
2024-12-20 16:48:10 +00:00
parent bfcc53dc1f
commit 3a82da0e5b
269 changed files with 935 additions and 842 deletions
@@ -54,9 +54,9 @@ export class DatePicker extends WithDisposable(LitElement) {
/** current active month */
private _cursor = new Date();
private _maxYear = 2099;
private readonly _maxYear = 2099;
private _minYear = 1970;
private readonly _minYear = 1970;
get _cardStyle() {
return {
@@ -68,6 +68,6 @@ export function getMonthMatrix(maybeDate: MaybeDate) {
}
export function clamp(num1: number, num2: number, value: number) {
const [min, max] = [num1, num2].sort();
const [min, max] = [num1, num2].sort((a, b) => a - b);
return Math.min(Math.max(value, min), max);
}