tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
15 lines (14 loc) • 511 B
TypeScript
import { TSLintToESLintSettings } from "../../types";
export type EditorConfigConverter = (
rawEditorSettings: string,
settings: TSLintToESLintSettings,
) => EditorConfigConversionResults;
export type EditorConfigConversionResults = {
contents: string;
missing: string[];
};
export type EditorConfigsConversionResults = {
failed: Map<string, Error>;
successes: Map<string, EditorConfigConversionResults>;
};
export type EditorConfigDescriptor = readonly [string, EditorConfigConverter];