mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 09:21:24 +08:00
chore: bump oxlint & enable more supported rules (#14769)
This commit is contained in:
@@ -226,7 +226,7 @@ class Resolver extends FrameworkProvider {
|
||||
const result = new Map<ComponentVariant, any>();
|
||||
|
||||
for (const [variant, factory] of vars) {
|
||||
// eslint-disable-next-line sonarjs/no-identical-functions
|
||||
// oxlint-disable-next-line sonarjs/no-identical-functions
|
||||
const runFactory = () => {
|
||||
const nextResolver = this.track(identifier);
|
||||
try {
|
||||
|
||||
@@ -516,7 +516,7 @@ export class LiveData<T = unknown>
|
||||
const subscription = this.subscribe(v => {
|
||||
if (predicate(v)) {
|
||||
resolve(v as any);
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
// oxlint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
Promise.resolve().then(() => {
|
||||
subscription.unsubscribe();
|
||||
});
|
||||
@@ -554,7 +554,7 @@ export class LiveData<T = unknown>
|
||||
throw this.poisonedError;
|
||||
}
|
||||
this.ops$.next('watch');
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises -- never throw
|
||||
// oxlint-disable-next-line @typescript-eslint/no-floating-promises -- never throw
|
||||
Promise.resolve().then(() => {
|
||||
this.ops$.next('unwatch');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user