53 lines
1.7 KiB
TypeScript
53 lines
1.7 KiB
TypeScript
declare namespace _default {
|
|
namespace meta {
|
|
let type: "problem";
|
|
namespace docs {
|
|
let recommended: boolean;
|
|
let description: string;
|
|
let url: string;
|
|
}
|
|
let schema: {
|
|
type: "object";
|
|
properties: {
|
|
allowLabels: {
|
|
type: "array";
|
|
items: {
|
|
type: "string";
|
|
};
|
|
uniqueItems: true;
|
|
};
|
|
};
|
|
additionalProperties: false;
|
|
}[];
|
|
let defaultOptions: [{
|
|
allowLabels: any[];
|
|
}];
|
|
namespace messages {
|
|
let notFound: string;
|
|
}
|
|
}
|
|
function create(context: import("@eslint/core").RuleContext<{
|
|
LangOptions: import("../types.js").MarkdownLanguageOptions;
|
|
Code: MarkdownSourceCode;
|
|
RuleOptions: NoMissingLabelRefsOptions;
|
|
Node: import("mdast").Node | import("../language/markdown-source-code.js").InlineConfigComment;
|
|
MessageIds: "notFound";
|
|
}>): {
|
|
"root:exit"(): void;
|
|
text(node: Text): void;
|
|
definition(node: import("mdast").Definition): void;
|
|
};
|
|
}
|
|
export default _default;
|
|
export type NoMissingLabelRefsMessageIds = "notFound";
|
|
export type NoMissingLabelRefsOptions = [{
|
|
allowLabels?: string[];
|
|
}];
|
|
export type NoMissingLabelRefsRuleDefinition = MarkdownRuleDefinition<{
|
|
RuleOptions: NoMissingLabelRefsOptions;
|
|
MessageIds: NoMissingLabelRefsMessageIds;
|
|
}>;
|
|
import type { MarkdownSourceCode } from "../language/markdown-source-code.js";
|
|
import type { Text } from "mdast";
|
|
import type { MarkdownRuleDefinition } from "../types.js";
|