refactor(core): Enable import/order eslint rule (#10794)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import { LicenseMetricsService } from '@/metrics/license-metrics.service';
|
||||
import type { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
|
||||
import type { LicenseMetricsRepository } from '@/databases/repositories/license-metrics.repository';
|
||||
import type { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import { LicenseMetricsService } from '@/metrics/license-metrics.service';
|
||||
|
||||
describe('LicenseMetricsService', () => {
|
||||
const workflowRepository = mock<WorkflowRepository>();
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
import config from '@/config';
|
||||
import promClient from 'prom-client';
|
||||
import { GlobalConfig } from '@n8n/config';
|
||||
import type express from 'express';
|
||||
import promBundle from 'express-prom-bundle';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import { PrometheusMetricsService } from '../prometheus-metrics.service';
|
||||
import type express from 'express';
|
||||
import promClient from 'prom-client';
|
||||
|
||||
import config from '@/config';
|
||||
import type { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
|
||||
import { mockInstance } from '@test/mocking';
|
||||
import { GlobalConfig } from '@n8n/config';
|
||||
import type { EventService } from '@/events/event.service';
|
||||
import { mockInstance } from '@test/mocking';
|
||||
|
||||
import { PrometheusMetricsService } from '../prometheus-metrics.service';
|
||||
|
||||
const mockMiddleware = (
|
||||
_req: express.Request,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { LicenseMetricsRepository } from '@/databases/repositories/license-metrics.repository';
|
||||
import { Service } from 'typedi';
|
||||
|
||||
import { LicenseMetricsRepository } from '@/databases/repositories/license-metrics.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
|
||||
@Service()
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
import { N8N_VERSION } from '@/constants';
|
||||
import { GlobalConfig } from '@n8n/config';
|
||||
import type express from 'express';
|
||||
import promBundle from 'express-prom-bundle';
|
||||
import { EventMessageTypeNames } from 'n8n-workflow';
|
||||
import promClient, { type Counter, type Gauge } from 'prom-client';
|
||||
import semverParse from 'semver/functions/parse';
|
||||
import { Service } from 'typedi';
|
||||
|
||||
import { CacheService } from '@/services/cache/cache.service';
|
||||
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
|
||||
import { EventMessageTypeNames } from 'n8n-workflow';
|
||||
import type { EventMessageTypes } from '@/eventbus';
|
||||
import type { Includes, MetricCategory, MetricLabel } from './types';
|
||||
import { GlobalConfig } from '@n8n/config';
|
||||
import { EventService } from '@/events/event.service';
|
||||
import config from '@/config';
|
||||
import { N8N_VERSION } from '@/constants';
|
||||
import type { EventMessageTypes } from '@/eventbus';
|
||||
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
|
||||
import { EventService } from '@/events/event.service';
|
||||
import { CacheService } from '@/services/cache/cache.service';
|
||||
|
||||
import type { Includes, MetricCategory, MetricLabel } from './types';
|
||||
|
||||
@Service()
|
||||
export class PrometheusMetricsService {
|
||||
|
||||
Reference in New Issue
Block a user