Zum Inhalt springen

File name matches type (ARCH3005)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key typescript.naming.file-name-matches-type · Severity info · Category naming

A source file’s name should correspond to the primary type it declares. Mismatched names make the project harder to navigate and files harder to locate.

helpers.ts
export class PaymentProcessor {
process(order: Order) {}
}
payment-processor.ts
export class PaymentProcessor {
process(order: Order) {}
}

Rename the file to match the primary type (e.g. kebab-case file name for a PascalCase type).