xo
Version:
JavaScript/TypeScript linter (ESLint wrapper) with great defaults
15 lines (11 loc) • 518 B
TypeScript
import { type SetRequired } from 'type-fest';
import { type Linter } from 'eslint';
import { type XoConfigItem } from './types.js';
/**
Convert a `xo` config item to an ESLint config item.
In a flat structure these config items represent the config object items.
Files and rules will always be defined and all other ESLint config properties are preserved.
@param xoConfig
@returns eslintConfig
*/
export declare const xoToEslintConfigItem: (xoConfig: XoConfigItem) => SetRequired<Linter.Config, "rules" | "files">;