UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

14 lines (13 loc) 566 B
/// <reference types="node" /> import { FileSystem } from "../../adapters/fileSystem"; import { RuleConverter } from "../lintConfigs/rules/ruleConverter"; export type ConvertFileCommentsDependencies = { converters: Map<string, RuleConverter>; fileSystem: Pick<FileSystem, "readFile" | "writeFile">; }; export declare const convertFileComments: ( dependencies: ConvertFileCommentsDependencies, filePath: string, ruleCommentsCache: Map<string, string[]>, ruleEquivalents: Map<string, string[]>, ) => Promise<NodeJS.ErrnoException | undefined>;