UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

9 lines (8 loc) 547 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>;