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:
1 parent
8061a2e5ff
commit
df970da59e
266 files changed
+1260
-1212
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user