UNPKG

@oxlint/migrate

Version:

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

13 lines (12 loc) 871 B
import { Linter } from 'eslint'; import { Options, OxlintConfig, OxlintConfigOrOverride } from './types.js'; export declare const transformRuleEntry: (eslintConfig: Linter.Config, targetConfig: OxlintConfigOrOverride, options?: Options) => void; export declare const detectNeededRulesPlugins: (targetConfig: OxlintConfigOrOverride, options?: Options) => void; export declare const cleanUpUselessOverridesPlugins: (config: OxlintConfig) => void; export declare const cleanUpUselessOverridesRules: (config: OxlintConfig) => void; export declare const cleanUpRulesWhichAreCoveredByCategory: (config: OxlintConfigOrOverride) => void; export declare const replaceTypescriptAliasRules: (config: OxlintConfigOrOverride) => void; /** * Oxlint support them only under the node plugin name */ export declare const replaceNodePluginName: (config: OxlintConfigOrOverride) => void;