eslint-mdx
Version:
ESLint Parser for MDX
12 lines (11 loc) • 819 B
TypeScript
import type { Linter } from 'eslint';
import type { ParserOptions } from './types.js';
export declare const DEFAULT_EXTENSIONS: readonly string[];
export declare const MARKDOWN_EXTENSIONS: readonly string[];
export declare class Parser {
constructor();
parse(code: string, options: ParserOptions): import("eslint").AST.Program;
parseForESLint(code: string, { filePath, sourceType, ignoreRemarkConfig, remarkConfigPath, extensions, markdownExtensions, }: ParserOptions): Linter.ESLintParseResult;
}
export declare const parser: Parser;
export declare const parse: (code: string, options: ParserOptions) => import("eslint").AST.Program, parseForESLint: (code: string, { filePath, sourceType, ignoreRemarkConfig, remarkConfigPath, extensions, markdownExtensions, }: ParserOptions) => Linter.ESLintParseResult;