mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
feat: bump eslint & oxlint (#14452)
#### PR Dependency Tree * **PR #14452** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved null-safety, dependency tracking, upload validation, and error logging for more reliable uploads, clipboard, calendar linking, telemetry, PDF/theme printing, and preview/zoom behavior. * Tightened handling of all-day calendar events (missing date now reported). * **Deprecations** * Removed deprecated RadioButton and RadioButtonGroup; use RadioGroup. * **Chores** * Unified and upgraded linting/config, reorganized imports, and standardized binary handling for more consistent builds and tooling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -79,6 +79,6 @@ describe('tracker session signals', () => {
|
||||
const sessionStart = events.find(
|
||||
event => event.eventName === 'session_start'
|
||||
);
|
||||
expect((sessionStart?.params as any).session_number).toBe(2);
|
||||
expect(sessionStart?.params?.session_number).toBe(2);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -116,6 +116,7 @@ export function enableAutoTrack(root: HTMLElement, trackFn: TrackFn) {
|
||||
declare module 'react' {
|
||||
// we have to declare `T` but it's actually not used
|
||||
|
||||
// oxlint-disable-next-line no-unused-vars
|
||||
interface HTMLAttributes<T> {
|
||||
'data-event-props'?: EventsUnion;
|
||||
'data-event-arg'?: string;
|
||||
|
||||
@@ -94,8 +94,8 @@ export function setTelemetryContext(
|
||||
const nextUserProps = options.replaceUserProperties
|
||||
? (update.userProperties ?? {})
|
||||
: {
|
||||
...(context.userProperties ?? {}),
|
||||
...(update.userProperties ?? {}),
|
||||
...context.userProperties,
|
||||
...update.userProperties,
|
||||
};
|
||||
|
||||
context = {
|
||||
|
||||
@@ -241,7 +241,7 @@ function mergeSessionParams(
|
||||
engagementMs: number
|
||||
) {
|
||||
const merged: Record<string, unknown> = {
|
||||
...(params ?? {}),
|
||||
...params,
|
||||
};
|
||||
if (Number.isFinite(nextSessionId) && nextSessionId > 0) {
|
||||
merged.session_id = nextSessionId;
|
||||
|
||||
Reference in New Issue
Block a user