UNPKG

@oxlint/migrate

Version:

Generates a `.oxlintrc.json` from a existing eslint flat config

11 lines (10 loc) 454 B
import { Options } from '../types.js'; export declare const walkAndReplaceProjectFiles: ( /** all projects files to check */ projectFiles: string[], /** function for reading the file */ readFileSync: (filePath: string) => string | undefined, /** function for writing the file */ writeFile: (filePath: string, content: string) => Promise<void>, /** options for the walker, for `reporter` and `withNurseryRules` */ options: Options) => Promise<void[]>;