refactor: Remove unused lint directives (no-changelog) (#9842)

This commit is contained in:
Iván Ovejero
2024-06-24 12:13:18 +02:00
committed by GitHub
parent 16d3083af7
commit 44ea4c73eb
92 changed files with 85 additions and 138 deletions

View File

@@ -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),