UNPKG

@appworks/doctor

Version:

Analyse and running codemods over react/rax projects, troubleshooting and automatically fixing errors

56 lines (55 loc) 1.43 kB
import { IClone } from '@jscpd/core'; import type { ProjectLintResult, CodemodRule } from '@applint/applint'; export interface IScannerOptions { ignore?: string[]; } export interface IScanOptions { fix?: boolean; framework?: string; transforms?: Record<string, number>; languageType?: 'js' | 'ts'; tempFileDir?: string; timeout?: number; disableESLint?: boolean; disableStylelint?: boolean; disableMaintainability?: boolean; disableRepeatability?: boolean; disableCodemod?: boolean; maxRepeatabilityCheckLines?: number; customTransformRules?: Record<string, CodemodRule>; eslintExtendsConfig?: string[]; } export interface IRepeatabilityReports { score: number; clones: IClone[]; } export interface IESLintReports { score: number; reports: any[]; errorCount: number; warningCount: number; customConfig: any; } export interface IStylelintReports { score: number; reports: any[]; warningCount: number; customConfig: any; } export interface ICodemodReports { score: number; reports: ProjectLintResult; } export interface IScannerReports { filesInfo: { count: number; lines: number; }; score?: number; scanTime?: number; ESLint?: IESLintReports; Stylelint?: IStylelintReports; repeatability?: IRepeatabilityReports; codemod?: ICodemodReports; maintainability?: any; }