mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-31 17:19:56 +08:00
chore: fix eslint in blocksuite (#9232)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user