chore(deps): update dependency eslint-plugin-unicorn to v70 - abandoned (#29684)

* chore(deps): update dependency eslint-plugin-unicorn to v70

* fix: linting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
renovate[bot] 2026-07-20 23:47:14 -04:00 committed by GitHub
parent 8061a2e5ff
commit df970da59e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
266 changed files with 1260 additions and 1212 deletions

View file

@ -138,7 +138,7 @@ export class MediumTestContext<S extends BaseService = BaseService> {
}
get<T>(key: ClassConstructor<T>): T {
if (!this.repoCache[key.name]) {
if (!Object.hasOwn(this.repoCache, key.name)) {
const real = newRealRepository(key, this.options.database);
this.repoCache[key.name] = real;
}
@ -313,11 +313,11 @@ export class SyncTestContext extends MediumTestContext<SyncService> {
});
}
async syncStream(auth: AuthDto, types: SyncRequestType[], reset?: boolean) {
async syncStream(auth: AuthDto, types: SyncRequestType[], shouldReset?: boolean) {
const stream = mediumFactory.syncStream();
// Wait for 2ms to ensure all updates are available and account for setTimeout inaccuracy
await wait(2);
await this.sut.stream(auth, stream, { types, reset });
await this.sut.stream(auth, stream, { types, reset: shouldReset });
return stream.getResponse();
}
@ -750,6 +750,8 @@ const tagInsert = (tag: Partial<Insertable<TagTable>>) => {
class CustomWritable extends Writable {
private data = '';
// determined by Writable interface
// eslint-disable-next-line unicorn/prefer-private-class-fields
_write(chunk: any, encoding: string, callback: () => void) {
this.data += chunk.toString();
callback();