Files
LearnNode/node-course/node_modules/@eslint/markdown/dist/rules/no-space-in-emphasis.d.ts
T
2026-08-06 12:00:39 +10:00

52 lines
1.8 KiB
TypeScript

declare namespace _default {
namespace meta {
let type: "problem";
namespace docs {
let recommended: boolean;
let description: string;
let url: string;
}
let fixable: "whitespace";
namespace messages {
let spaceInEmphasis: string;
}
let schema: {
type: "object";
properties: {
checkStrikethrough: {
type: "boolean";
};
};
additionalProperties: false;
}[];
let defaultOptions: [{
checkStrikethrough: false;
}];
}
function create(context: import("@eslint/core").RuleContext<{
LangOptions: import("../types.js").MarkdownLanguageOptions;
Code: import("../index.js").MarkdownSourceCode;
RuleOptions: NoSpaceInEmphasisOptions;
Node: import("mdast").Node | import("../language/markdown-source-code.js").InlineConfigComment;
MessageIds: "spaceInEmphasis";
}>): {
"heading, paragraph, tableCell"(node: Heading | Paragraph | TableCell): void;
":matches(heading, paragraph, tableCell) > text"(node: Text): void;
":matches(heading, paragraph, tableCell):exit"(node: Heading | Paragraph | TableCell): void;
};
}
export default _default;
export type NoSpaceInEmphasisMessageIds = "spaceInEmphasis";
export type NoSpaceInEmphasisOptions = [{
checkStrikethrough?: boolean;
}];
export type NoSpaceInEmphasisRuleDefinition = MarkdownRuleDefinition<{
RuleOptions: NoSpaceInEmphasisOptions;
MessageIds: NoSpaceInEmphasisMessageIds;
}>;
import type { Heading } from "mdast";
import type { Paragraph } from "mdast";
import type { TableCell } from "mdast";
import type { Text } from "mdast";
import type { MarkdownRuleDefinition } from "../types.js";