UNPKG

633 BTypeScriptView Raw
1// Type definitions for eslint-plugin-markdown 2.0
2// Project: https://github.com/eslint/eslint-plugin-markdown#readme
3// Definitions by: JounQin <https://github.com/JounQin>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6import { Linter } from "eslint";
7import { Node } from "unist";
8
9export interface RangeMap {
10 js: number;
11 md: number;
12}
13
14export interface Block extends Node {
15 baseIndentText: string;
16 comments: string[];
17 rangeMap: RangeMap[];
18}
19
20export const configs: {
21 recommended: Linter.Config;
22};
23
24export const processors: {
25 markdown: Linter.Processor<Linter.ProcessorFile>;
26};