eslint-plugin-mdx
Version:
ESLint Plugin for MDX
21 lines (20 loc) • 664 B
TypeScript
import type { Linter } from 'eslint';
import type { ExpressionStatement, Node } from 'estree';
import type { Attacher } from 'unified';
export interface WithParent {
parent: NodeWithParent;
}
export declare type NodeWithParent = Node & WithParent;
export interface ExpressionStatementWithParent extends ExpressionStatement, WithParent {
}
export declare type RemarkPlugin = string | Attacher;
export interface RemarkConfig {
settings: Record<string, string>;
plugins: Array<RemarkPlugin | [RemarkPlugin, ...unknown[]]>;
}
export interface RemarkLintMessage {
reason: string;
source: string;
ruleId: string;
severity: Linter.Severity;
}