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]andDaniel Dietzler authored and GitHub committed 2026-07-20 23:47:14 -04:00
1 parent 8061a2e5ff
commit df970da59e
266 files changed
+1260 -1212

No files matched your search

+5 -2
View File
@@ -23,6 +23,7 @@ const handleError = (label: string, error: Error | any) => {
console.error(`${label} error: ${error}`);
};
// eslint-disable-next-line unicorn/no-exports-in-scripts
export class SqlLogger {
queries: string[] = [];
errors: Array<{ error: string | Error; query: string }> = [];
@@ -109,10 +110,12 @@ class SqlGenerator {
const instance = this.app.get<Repository>(Repository);
// normal repositories
data.push(...(await this.runTargets(instance, `${Repository.name}`)));
data.push(...(await this.runTargets(instance, Repository.name)));
// nested repositories
if (Repository.name === AccessRepository.name || Repository.name === SyncRepository.name) {
// probably a bug that this fails linting?
// eslint-disable-next-line unicorn/prefer-object-iterable-methods
for (const key of Object.keys(instance)) {
const subInstance = (instance as any)[key];
data.push(...(await this.runTargets(subInstance, `${Repository.name}.${key}`)));
@@ -127,7 +130,7 @@ class SqlGenerator {
for (const key of this.getPropertyNames(instance)) {
const target = instance[key];
if (!(typeof target === 'function')) {
if (typeof target !== 'function') {
continue;
}