mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Tweak rule parameters to avoid confusing the TypeScript type system.
This commit is contained in:
parent
7dc50c125f
commit
1a376f60bb
2 changed files with 5 additions and 4 deletions
|
|
@ -25,7 +25,8 @@ module.exports = {
|
|||
"names": [ "MD054", "link-image-style" ],
|
||||
"description": "Link and image style",
|
||||
"tags": [ "images", "links" ],
|
||||
"function": ({ parsers, config }, onError) => {
|
||||
"function": (params, onError) => {
|
||||
const { parsers, config } = params;
|
||||
const autolink = (config.autolink === undefined) || !!config.autolink;
|
||||
const inline = (config.inline === undefined) || !!config.inline;
|
||||
const reference = (config.reference === undefined) || !!config.reference;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue