chore: Enfore consistent file-name casing on all backend packages (#15755)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-05-27 16:45:50 +02:00
committed by GitHub
parent 66d339c0d8
commit 3a2a70f193
152 changed files with 309 additions and 279 deletions

View File

@@ -9,6 +9,7 @@ module.exports = {
...sharedOptions(__dirname),
rules: {
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
'@typescript-eslint/consistent-type-imports': 'error',
'n8n-local-rules/no-plain-errors': 'off',
},

View File

@@ -3,8 +3,8 @@ import { EventEmitter } from 'events';
import type Imap from 'imap';
import { type ImapMessage } from 'imap';
import { getMessage } from './helpers/getMessage';
import { PartData } from './PartData';
import { getMessage } from './helpers/get-message';
import { PartData } from './part-data';
import type { Message, MessagePart } from './types';
const IMAP_EVENTS = ['alert', 'mail', 'expunge', 'uidvalidity', 'update', 'close', 'end'] as const;

View File

@@ -3,7 +3,7 @@
import Imap from 'imap';
import { ConnectionClosedError, ConnectionEndedError, ConnectionTimeoutError } from './errors';
import { ImapSimple } from './ImapSimple';
import { ImapSimple } from './imap-simple';
import type { ImapSimpleOptions, MessagePart } from './types';
/**
@@ -95,6 +95,6 @@ export function getParts(
return parts;
}
export * from './ImapSimple';
export * from './imap-simple';
export * from './errors';
export * from './types';

View File

@@ -5,7 +5,7 @@ import {
SevenBitPartData,
BinaryPartData,
UuencodedPartData,
} from '../src/PartData';
} from '../src/part-data';
describe('PartData', () => {
describe('fromData', () => {