Generate TypeScript declaration for Configuration object from JSON schema (refs #1004, refs #1014).

This commit is contained in:
David Anson 2023-11-08 19:49:02 -08:00
parent b3f0e529cf
commit d4bfb633bb
7 changed files with 2192 additions and 73 deletions

View file

@ -358,12 +358,10 @@ type FixInfo = {
*/
type LintContentCallback = (error: Error | null, result?: LintError[]) => void;
/**
* Configuration object for linting rules. For a detailed schema, see
* Configuration object for linting rules. For the JSON schema, see
* {@link ../schema/markdownlint-config-schema.json}.
*/
type Configuration = {
[x: string]: RuleConfiguration;
};
type Configuration = import("./configuration").Configuration;
/**
* Rule configuration.
*/