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;
executionStatus: ExecutionStatus;
error?: string;
changes?: string;
changes?: object;
coveredNodes: {
[nodeType: string]: number;
};

View file

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

View file

@ -102,7 +102,7 @@ export class Sendy implements INodeType {
};
if (brandId) {
body.brand_id = brandId as string;
body.brand_id = brandId;
}
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.',
},
{
displayName: 'Mute activity',
displayName: 'Mute Activity',
name: 'hide_from_home',
type: 'boolean',
default: false,
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
description: 'Do not publish to Home or Club feeds',
},
{

View file

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