first commit
This commit is contained in:
+51
@@ -0,0 +1,51 @@
|
||||
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";
|
||||
Reference in New Issue
Block a user