tslint-to-eslint-config
Version:
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
14 lines (13 loc) • 442 B
TypeScript
import ts from "typescript";
export type FileComment = {
commentKind: ts.CommentKind;
directive: TSLintDirective;
end: number;
pos: number;
ruleNames: string[];
};
export type TSLintDirective = "tslint:disable-next-line" | "tslint:disable" | "tslint:enable";
/**
* @see https://github.com/Microsoft/TypeScript/issues/21049
*/
export declare const parseFileComments: (filePath: string, content: string) => FileComment[];