refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-12-19 18:46:14 +01:00
committed by GitHub
parent 8c635993bd
commit bafac73eb5
1120 changed files with 2677 additions and 2827 deletions

View File

@@ -1,3 +1,4 @@
import set from 'lodash/set';
import type {
IExecuteFunctions,
INodeExecutionData,
@@ -6,8 +7,7 @@ import type {
} from 'n8n-workflow';
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
import set from 'lodash/set';
import type { RedisCredential } from './types';
import {
setupRedisClient,
redisConnectionTest,
@@ -15,7 +15,6 @@ import {
getValue,
setValue,
} from './utils';
import type { RedisCredential } from './types';
export class Redis implements INodeType {
description: INodeTypeDescription = {

View File

@@ -6,8 +6,8 @@ import type {
} from 'n8n-workflow';
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
import { redisConnectionTest, setupRedisClient } from './utils';
import type { RedisCredential } from './types';
import { redisConnectionTest, setupRedisClient } from './utils';
interface Options {
jsonParseBody: boolean;

View File

@@ -11,8 +11,8 @@ const createClient = jest.fn().mockReturnValue(mockClient);
jest.mock('redis', () => ({ createClient }));
import { Redis } from '../Redis.node';
import { redisConnectionTest, setupRedisClient } from '../utils';
import type { RedisClient } from '../types';
import { redisConnectionTest, setupRedisClient } from '../utils';
describe('Redis Node', () => {
const node = new Redis();

View File

@@ -1,10 +1,10 @@
import { returnJsonArray } from 'n8n-core';
import { captor, mock } from 'jest-mock-extended';
import { returnJsonArray } from 'n8n-core';
import type { ICredentialDataDecryptedObject, ITriggerFunctions } from 'n8n-workflow';
import { RedisTrigger } from '../RedisTrigger.node';
import { setupRedisClient } from '../utils';
import type { RedisClient } from '../types';
import { setupRedisClient } from '../utils';
jest.mock('../utils', () => {
const mockRedisClient = mock<RedisClient>();