mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update to use named exports via / /async /promise /sync, simplify references via self-referencing, refine examples.
This commit is contained in:
parent
e41f034bef
commit
8da43dd246
96 changed files with 635 additions and 548 deletions
|
@ -7,8 +7,8 @@ import { filterByTypesCached } from "./cache.mjs";
|
|||
/**
|
||||
* Validate heading sequence and whitespace length at start or end.
|
||||
*
|
||||
* @param {import("./markdownlint.mjs").RuleOnError} onError Error-reporting callback.
|
||||
* @param {import("./markdownlint.mjs").MicromarkToken} heading ATX heading token.
|
||||
* @param {import("markdownlint").RuleOnError} onError Error-reporting callback.
|
||||
* @param {import("markdownlint").MicromarkToken} heading ATX heading token.
|
||||
* @param {number} delta Direction to scan.
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -45,7 +45,7 @@ function validateHeadingSpaces(onError, heading, delta) {
|
|||
}
|
||||
}
|
||||
|
||||
/** @type {import("./markdownlint.mjs").Rule[]} */
|
||||
/** @type {import("markdownlint").Rule[]} */
|
||||
export default [
|
||||
{
|
||||
"names": [ "MD019", "no-multiple-space-atx" ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue