👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2020-10-22 15:46:03 +02:00
parent 5b7efd67ca
commit 40c2acd77b
491 changed files with 4045 additions and 3936 deletions

View File

@@ -41,7 +41,7 @@ export class EmailReadImap implements INodeType {
{
name: 'imap',
required: true,
}
},
],
properties: [
{
@@ -89,7 +89,7 @@ export class EmailReadImap implements INodeType {
{
name: 'RAW',
value: 'raw',
description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.'
description: 'Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used.',
},
{
name: 'Resolved',
@@ -148,7 +148,7 @@ export class EmailReadImap implements INodeType {
name: 'customEmailConfig',
type: 'string',
default: '["UNSEEN"]',
description: 'Custom email fetching rules. See <a href="https://github.com/mscdex/node-imap">node-imap</a>\'s search function for more details'
description: 'Custom email fetching rules. See <a href="https://github.com/mscdex/node-imap">node-imap</a>\'s search function for more details',
},
{
displayName: 'Ignore SSL Issues',
@@ -176,7 +176,7 @@ export class EmailReadImap implements INodeType {
const options = this.getNodeParameter('options', {}) as IDataObject;
let searchCriteria = [
'UNSEEN'
'UNSEEN',
];
if (options.customEmailConfig !== undefined) {
try {
@@ -301,7 +301,7 @@ export class EmailReadImap implements INodeType {
textHtml: await getText(parts, message, 'html'),
textPlain: await getText(parts, message, 'plain'),
metadata: {} as IDataObject,
}
},
};
messageHeader = message.parts.filter((part) => {
@@ -342,8 +342,8 @@ export class EmailReadImap implements INodeType {
// Return base64 string
newEmail = {
json: {
raw: part.body
}
raw: part.body,
},
};
newEmails.push(newEmail);
@@ -362,7 +362,7 @@ export class EmailReadImap implements INodeType {
host: credentials.host as string,
port: credentials.port as number,
tls: credentials.secure as boolean,
authTimeout: 3000
authTimeout: 3000,
},
onmail: async () => {
const returnData = await getNewEmails(connection, searchCriteria);
@@ -375,7 +375,7 @@ export class EmailReadImap implements INodeType {
if (options.allowUnauthorizedCerts === true) {
config.imap.tlsOptions = {
rejectUnauthorized: false
rejectUnauthorized: false,
};
}