Skip to content

Commit

Permalink
Tweak rule parameters to avoid confusing the TypeScript type system.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Nov 4, 2023
1 parent 7dc50c1 commit 1a376f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions demo/markdownlint-browser.js
Expand Up @@ -6741,9 +6741,9 @@ module.exports = {
"names": ["MD054", "link-image-style"],
"description": "Link and image style",
"tags": ["images", "links"],
"function": function _function(_ref, onError) {
var parsers = _ref.parsers,
config = _ref.config;
"function": function _function(params, onError) {
var parsers = params.parsers,
config = params.config;
var autolink = config.autolink === undefined || !!config.autolink;
var inline = config.inline === undefined || !!config.inline;
var reference = config.reference === undefined || !!config.reference;
Expand Down
3 changes: 2 additions & 1 deletion lib/md054.js
Expand Up @@ -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;
Expand Down

0 comments on commit 1a376f6

Please sign in to comment.