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 |
|
6 | import { Linter } from "eslint";
|
7 | import { Node } from "unist";
|
8 |
|
9 | export interface RangeMap {
|
10 | js: number;
|
11 | md: number;
|
12 | }
|
13 |
|
14 | export interface Block extends Node {
|
15 | baseIndentText: string;
|
16 | comments: string[];
|
17 | rangeMap: RangeMap[];
|
18 | }
|
19 |
|
20 | export const configs: {
|
21 | recommended: Linter.Config;
|
22 | };
|
23 |
|
24 | export const processors: {
|
25 | markdown: Linter.Processor<Linter.ProcessorFile>;
|
26 | };
|