ci: Fix linting issues (no-changelog)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-07-06 09:21:50 +02:00
parent 926676e0eb
commit 8002213538
5 changed files with 11 additions and 12 deletions

View file

@ -21,7 +21,7 @@ interface IExecutionResult {
finished: boolean; finished: boolean;
executionStatus: ExecutionStatus; executionStatus: ExecutionStatus;
error?: string; error?: string;
changes?: string; changes?: object;
coveredNodes: { coveredNodes: {
[nodeType: string]: number; [nodeType: string]: number;
}; };

View file

@ -2,8 +2,8 @@
import fs from 'fs'; import fs from 'fs';
import os from 'os'; import os from 'os';
import { flags } from '@oclif/command'; import { flags } from '@oclif/command';
import type { ITaskData } from 'n8n-workflow'; import type { IRun, ITaskData } from 'n8n-workflow';
import { sleep } from 'n8n-workflow'; import { jsonParse, sleep } from 'n8n-workflow';
import { sep } from 'path'; import { sep } from 'path';
import { diff } from 'json-diff'; import { diff } from 'json-diff';
import pick from 'lodash/pick'; import pick from 'lodash/pick';
@ -778,9 +778,9 @@ export class ExecuteBatch extends BaseCommand {
}${workflowData.id}-snapshot.json`; }${workflowData.id}-snapshot.json`;
if (fs.existsSync(fileName)) { if (fs.existsSync(fileName)) {
const contents = fs.readFileSync(fileName, { encoding: 'utf-8' }); const contents = fs.readFileSync(fileName, { encoding: 'utf-8' });
const expected = JSON.parse(contents); const expected = jsonParse<IRun>(contents);
const recieved = JSON.parse(serializedData); const received = jsonParse<IRun>(serializedData);
const changes = diff(expected, recieved, { keysOnly: true }); const changes = diff(expected, received, { keysOnly: true }) as object;
if (changes !== undefined) { if (changes !== undefined) {
// If we had only additions with no removals // If we had only additions with no removals

View file

@ -102,7 +102,7 @@ export class Sendy implements INodeType {
}; };
if (brandId) { if (brandId) {
body.brand_id = brandId as string; body.brand_id = brandId;
} }
if (additionalFields.plainText) { if (additionalFields.plainText) {

View file

@ -234,10 +234,11 @@ export const activityFields: INodeProperties[] = [
'Identifier for the gear associated with the activity. none clears gear from activity.', 'Identifier for the gear associated with the activity. none clears gear from activity.',
}, },
{ {
displayName: 'Mute activity', displayName: 'Mute Activity',
name: 'hide_from_home', name: 'hide_from_home',
type: 'boolean', type: 'boolean',
default: false, default: false,
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
description: 'Do not publish to Home or Club feeds', description: 'Do not publish to Home or Club feeds',
}, },
{ {

View file

@ -16,7 +16,7 @@ export const defaultWebhookDescription: IWebhookDescription = {
}; };
export const credentialsProperty = ( export const credentialsProperty = (
propertyName: string = 'authentication', propertyName = 'authentication',
): INodeTypeDescription['credentials'] => [ ): INodeTypeDescription['credentials'] => [
{ {
name: 'httpBasicAuth', name: 'httpBasicAuth',
@ -38,9 +38,7 @@ export const credentialsProperty = (
}, },
]; ];
export const authenticationProperty = ( export const authenticationProperty = (propertyName = 'authentication'): INodeProperties => ({
propertyName: string = 'authentication',
): INodeProperties => ({
displayName: 'Authentication', displayName: 'Authentication',
name: propertyName, name: propertyName,
type: 'options', type: 'options',