mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Clear unused ESLint directives from nodes-base (no-changelog) (#6812)
* refactor: Clear unused ESLint directives from nodes-base (no-changelog) * removed unused disable directives --------- Co-authored-by: Marcus <marcus@n8n.io>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
import type {
|
||||
ICredentialDataDecryptedObject,
|
||||
ICredentialsDecrypted,
|
||||
@@ -33,7 +32,6 @@ export class Ldap implements INodeType {
|
||||
outputs: ['main'],
|
||||
credentials: [
|
||||
{
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-credentials-name-unsuffixed
|
||||
name: 'ldap',
|
||||
required: true,
|
||||
testedBy: 'ldapConnectionTest',
|
||||
@@ -132,7 +130,7 @@ export class Ldap implements INodeType {
|
||||
|
||||
const baseDN = this.getNodeParameter('baseDN', 0) as string;
|
||||
const results = await client.search(baseDN, { sizeLimit: 200, paged: false }); // should this size limit be set in credentials?
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
|
||||
const unique = Object.keys(Object.assign({}, ...results.searchEntries));
|
||||
return unique.map((x) => ({
|
||||
name: x,
|
||||
@@ -183,7 +181,7 @@ export class Ldap implements INodeType {
|
||||
|
||||
const baseDN = this.getNodeParameter('dn', 0) as string;
|
||||
const results = await client.search(baseDN, { sizeLimit: 1, paged: false });
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
|
||||
const unique = Object.keys(Object.assign({}, ...results.searchEntries));
|
||||
return unique.map((x) => ({
|
||||
name: x,
|
||||
|
||||
Reference in New Issue
Block a user