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,7 +1,7 @@
/* eslint-disable n8n-nodes-base/node-execute-block-wrong-error-thrown */
import { pipeline } from 'stream/promises';
import { createWriteStream } from 'fs';
import { stat } from 'fs/promises';
import isbot from 'isbot';
import type {
IWebhookFunctions,
IDataObject,
@@ -12,10 +12,9 @@ import type {
INodeProperties,
} from 'n8n-workflow';
import { BINARY_ENCODING, NodeOperationError, Node } from 'n8n-workflow';
import { v4 as uuid } from 'uuid';
import isbot from 'isbot';
import { pipeline } from 'stream/promises';
import { file as tmpFile } from 'tmp-promise';
import { v4 as uuid } from 'uuid';
import {
authenticationProperty,

View File

@@ -1,4 +1,5 @@
import type { INodeProperties, INodeTypeDescription, IWebhookDescription } from 'n8n-workflow';
import { getResponseCode, getResponseData } from './utils';
export const defaultWebhookDescription: IWebhookDescription = {

View File

@@ -1,9 +1,11 @@
import type { Request } from 'express';
import type { IWebhookFunctions } from 'n8n-workflow';
import { mock } from 'jest-mock-extended';
import { Webhook } from '../Webhook.node';
import type { IWebhookFunctions } from 'n8n-workflow';
import { testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
import { Webhook } from '../Webhook.node';
const workflows = getWorkflowFilenames(__dirname);
describe('Test Webhook Node', () => {

View File

@@ -1,5 +1,6 @@
import jwt from 'jsonwebtoken';
import { ApplicationError, type IWebhookFunctions } from 'n8n-workflow';
import type { WebhookParameters } from '../utils';
import {
checkResponseModeConfiguration,

View File

@@ -1,3 +1,5 @@
import basicAuth from 'basic-auth';
import jwt from 'jsonwebtoken';
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
import type {
IWebhookFunctions,
@@ -5,10 +7,9 @@ import type {
IDataObject,
ICredentialDataDecryptedObject,
} from 'n8n-workflow';
import basicAuth from 'basic-auth';
import jwt from 'jsonwebtoken';
import { formatPrivateKey } from '../../utils/utilities';
import { WebhookAuthorizationError } from './error';
import { formatPrivateKey } from '../../utils/utilities';
export type WebhookParameters = {
httpMethod: string | string[];
@@ -59,7 +60,7 @@ export const getResponseData = (parameters: WebhookParameters) => {
};
export const configuredOutputs = (parameters: WebhookParameters) => {
const httpMethod = parameters.httpMethod as string | string[];
const httpMethod = parameters.httpMethod;
if (!Array.isArray(httpMethod))
return [