/** * Adapter: map @webpieces/config ResolvedConfig → legacy ValidateCodeOptions. * * We don't want to rewrite the 11 sub-executors in this PR, so this file * takes the shared webpieces.config.json entries (kebab-case rule names) * and reconstructs the camelCase ValidateCodeOptions shape the executor * already understands. * * Mapping of canonical kebab-case rule name → ValidateCodeOptions field: * max-method-lines → methodMaxLimit * max-file-lines → fileMaxLimit * require-return-type → requireReturnType * no-inline-type-literals → noInlineTypeLiterals * no-any-unknown → noAnyUnknown * no-implicit-any → noImplicitAny * validate-dtos → validateDtos * prisma-converter → prismaConverter * no-destructure → noDestructure * catch-error-pattern → catchErrorPattern * no-unmanaged-exceptions → noUnmanagedExceptions * no-direct-api-in-resolver → noDirectApiInResolver * * A rule entry with enabled:false is surfaced as mode:'OFF' so the * downstream executor short-circuits the same way it did before. */ import type { ResolvedConfig } from '@webpieces/config'; import type { ValidateCodeOptions } from './executor'; export declare function toValidateCodeOptions(shared: ResolvedConfig): ValidateCodeOptions;