Skip to content

Commit

Permalink
Generate TypeScript declaration for Configuration object from JSON sc…
Browse files Browse the repository at this point in the history
…hema (refs #1004, refs #1014).
  • Loading branch information
DavidAnson committed Nov 9, 2023
1 parent b3f0e52 commit d4bfb63
Show file tree
Hide file tree
Showing 7 changed files with 2,252 additions and 133 deletions.
5 changes: 3 additions & 2 deletions demo/markdownlint-browser.js
Expand Up @@ -2106,6 +2106,7 @@ function getEffectiveConfig(ruleList, config, aliasToRuleNames) {
return key.toUpperCase() === "DEFAULT";
});
var ruleDefault = defaultKey.length === 0 || !!config[defaultKey[0]];
/** @type {Configuration} */
var effectiveConfig = {};
var _iterator14 = _createForOfIteratorHelper(ruleList),
_step14;
Expand Down Expand Up @@ -3191,10 +3192,10 @@ module.exports = markdownlint;
*/

/**
* 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}.
*
* @typedef {Object.<string, RuleConfiguration>} Configuration
* @typedef {import("./configuration").Configuration} Configuration
*/

/**
Expand Down

0 comments on commit d4bfb63

Please sign in to comment.