xo
Version:
JavaScript/TypeScript linter (ESLint wrapper) with great defaults
12 lines (11 loc) • 439 B
TypeScript
import { type Linter } from 'eslint';
import { type Options } from 'prettier';
import { type XoConfigItem } from './types.js';
export type CreateConfigOptions = {
prettierOptions?: Options;
};
/**
Takes a XO flat config and returns an ESlint flat config.
*/
export declare function xoToEslintConfig(flatXoConfig: XoConfigItem[] | undefined, { prettierOptions }?: CreateConfigOptions): Linter.Config[];
export default xoToEslintConfig;