mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Remove unused lint directives (no-changelog) (#9842)
This commit is contained in:
@@ -1275,7 +1275,6 @@ export interface ICredentialsDisplayOptions {
|
||||
[key: string]: NodeParameterValue[] | undefined;
|
||||
};
|
||||
show?: {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
'@version'?: number[];
|
||||
[key: string]: NodeParameterValue[] | undefined;
|
||||
};
|
||||
@@ -1711,29 +1710,28 @@ export type ConnectionTypes =
|
||||
| 'main';
|
||||
|
||||
export const enum NodeConnectionType {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
AiAgent = 'ai_agent',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiChain = 'ai_chain',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiDocument = 'ai_document',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiEmbedding = 'ai_embedding',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiLanguageModel = 'ai_languageModel',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiMemory = 'ai_memory',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiOutputParser = 'ai_outputParser',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiRetriever = 'ai_retriever',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiTextSplitter = 'ai_textSplitter',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiTool = 'ai_tool',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
AiVectorStore = 'ai_vectorStore',
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
Main = 'main',
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-use-before-define */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
|
||||
|
||||
@@ -794,7 +794,7 @@ export class WorkflowDataProxy {
|
||||
if (Array.isArray(itemPreviousNode.pairedItem)) {
|
||||
// Item is based on multiple items so check all of them
|
||||
const results = itemPreviousNode.pairedItem
|
||||
// eslint-disable-next-line @typescript-eslint/no-loop-func
|
||||
|
||||
.map((item) => {
|
||||
try {
|
||||
const itemInput = item.input || 0;
|
||||
@@ -1277,11 +1277,11 @@ export class WorkflowDataProxy {
|
||||
$now: DateTime.now(),
|
||||
$today: DateTime.now().set({ hour: 0, minute: 0, second: 0, millisecond: 0 }),
|
||||
$jmesPath: jmespathWrapper,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
DateTime,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
Interval,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
||||
Duration,
|
||||
...that.additionalKeys,
|
||||
$getPairedItem: getPairedItem,
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
|
||||
import { parseString } from 'xml2js';
|
||||
import type {
|
||||
@@ -149,7 +147,7 @@ export class NodeApiError extends NodeError {
|
||||
}
|
||||
|
||||
// if not description provided, try to find it in the error object
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
|
||||
if (
|
||||
!description &&
|
||||
(errorResponse.description || (errorResponse?.reason as IDataObject)?.description)
|
||||
@@ -160,7 +158,7 @@ export class NodeApiError extends NodeError {
|
||||
}
|
||||
|
||||
// if not message provided, try to find it in the error object or set description as message
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
|
||||
if (
|
||||
!message &&
|
||||
(errorResponse.message || (errorResponse?.reason as IDataObject)?.message || description)
|
||||
@@ -265,10 +263,8 @@ export class NodeApiError extends NodeError {
|
||||
parseString(xml, { explicitArray: false }, (_, result) => {
|
||||
if (!result) return;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
const topLevelKey = Object.keys(result)[0];
|
||||
this.description = this.findProperty(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
||||
result[topLevelKey],
|
||||
ERROR_MESSAGE_PROPERTIES,
|
||||
['Error'].concat(ERROR_NESTING_PROPERTIES),
|
||||
|
||||
Reference in New Issue
Block a user