mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Update rule typescript-eslint/no-unused-vars to not error when variable starts with _ (#4523)
* ⚡ rule and fixes * ⚡ clean up
This commit is contained in:
@@ -8,7 +8,6 @@ import {
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
NodeApiError,
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
|
||||
@@ -123,7 +123,7 @@ export class MicrosoftGraphSecurity implements INodeType {
|
||||
.then((response) => response.value)) as Array<{ controlScores: object[] }>;
|
||||
|
||||
if (!includeControlScores) {
|
||||
responseData = responseData.map(({ controlScores, ...rest }) => rest);
|
||||
responseData = responseData.map(({ controlScores: _controlScores, ...rest }) => rest);
|
||||
}
|
||||
}
|
||||
} else if (resource === 'secureScoreControlProfile') {
|
||||
|
||||
@@ -65,7 +65,6 @@ export class MicrosoftOneDrive implements INodeType {
|
||||
const items = this.getInputData();
|
||||
const returnData: INodeExecutionData[] = [];
|
||||
const length = items.length;
|
||||
const qs: IDataObject = {};
|
||||
let responseData;
|
||||
const resource = this.getNodeParameter('resource', 0) as string;
|
||||
const operation = this.getNodeParameter('operation', 0) as string;
|
||||
|
||||
@@ -7,7 +7,6 @@ import {
|
||||
INodePropertyOptions,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
JsonObject,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { microsoftApiRequest, microsoftApiRequestAllItems } from './GenericFunctions';
|
||||
|
||||
@@ -11,7 +11,7 @@ export async function microsoftApiRequest(
|
||||
body: IDataObject = {},
|
||||
qs: IDataObject = {},
|
||||
uri?: string,
|
||||
headers: IDataObject = {},
|
||||
_headers: IDataObject = {},
|
||||
option: IDataObject = { json: true },
|
||||
) {
|
||||
const options: OptionsWithUri = {
|
||||
|
||||
Reference in New Issue
Block a user