refactor(core): Lintfix cli package (#17125)

This commit is contained in:
Iván Ovejero
2025-07-08 19:32:02 +02:00
committed by GitHub
parent 32fbb5cf6a
commit f3ef0a713c
179 changed files with 647 additions and 693 deletions

View File

@@ -1,7 +1,5 @@
import { randomName } from '@n8n/backend-test-utils';
import { InstalledPackages } from '@n8n/db';
import { InstalledNodesRepository } from '@n8n/db';
import { InstalledPackagesRepository } from '@n8n/db';
import { InstalledPackages, InstalledNodesRepository, InstalledPackagesRepository } from '@n8n/db';
import { Container } from '@n8n/di';
import { NODE_PACKAGE_PREFIX } from '@/constants';

View File

@@ -135,7 +135,7 @@ export function getAuthToken(response: request.Response, authCookieName = AUTH_C
const match = authCookie.match(new RegExp(`(^| )${authCookieName}=(?<token>[^;]+)`));
if (!match || !match.groups) return undefined;
if (!match?.groups) return undefined;
return match.groups.token;
}

View File

@@ -1,5 +1,4 @@
import { testDb } from '@n8n/backend-test-utils';
import { mockInstance } from '@n8n/backend-test-utils';
import { testDb, mockInstance } from '@n8n/backend-test-utils';
import type { CommandClass } from '@n8n/decorators';
import argvParser from 'yargs-parser';

View File

@@ -1,10 +1,6 @@
import { LicenseState } from '@n8n/backend-common';
import { ModuleRegistry } from '@n8n/backend-common';
import { mockInstance, mockLogger } from '@n8n/backend-test-utils';
import { testModules } from '@n8n/backend-test-utils';
import { testDb } from '@n8n/backend-test-utils';
import type { APIRequest } from '@n8n/db';
import type { User } from '@n8n/db';
import { LicenseState, ModuleRegistry } from '@n8n/backend-common';
import { mockInstance, mockLogger, testModules, testDb } from '@n8n/backend-test-utils';
import type { APIRequest, User } from '@n8n/db';
import { Container } from '@n8n/di';
import cookieParser from 'cookie-parser';
import express from 'express';

View File

@@ -1,5 +1,4 @@
import type { User } from '@n8n/db';
import type { PublicUser } from '@n8n/db';
import type { User, PublicUser } from '@n8n/db';
export const validateUser = (user: PublicUser) => {
expect(typeof user.id).toBe('string');