refactor: Enable import/order rule for n8n-core (#11016)

This commit is contained in:
Tomi Turtiainen
2024-09-30 16:38:56 +03:00
committed by GitHub
parent e54a396088
commit d2238b9eac
48 changed files with 127 additions and 97 deletions

View File

@@ -1,8 +1,5 @@
import path from 'path';
import { readdirSync, readFileSync } from 'fs';
const BASE_DIR = path.resolve(__dirname, '../../..');
import { mock } from 'jest-mock-extended';
import type {
IDataObject,
IDeferredPromise,
@@ -17,11 +14,12 @@ import type {
WorkflowTestData,
INodeTypeData,
} from 'n8n-workflow';
import { ApplicationError, NodeHelpers, WorkflowHooks } from 'n8n-workflow';
import path from 'path';
import { predefinedNodesTypes } from './constants';
import { mock } from 'jest-mock-extended';
const BASE_DIR = path.resolve(__dirname, '../../..');
class NodeTypesClass implements INodeTypes {
constructor(private nodeTypes: INodeTypeData = predefinedNodesTypes) {}