mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +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
|
|
@ -6741,9 +6741,9 @@ module.exports = {
|
||||||
"names": ["MD054", "link-image-style"],
|
"names": ["MD054", "link-image-style"],
|
||||||
"description": "Link and image style",
|
"description": "Link and image style",
|
||||||
"tags": ["images", "links"],
|
"tags": ["images", "links"],
|
||||||
"function": function _function(_ref, onError) {
|
"function": function _function(params, onError) {
|
||||||
var parsers = _ref.parsers,
|
var parsers = params.parsers,
|
||||||
config = _ref.config;
|
config = params.config;
|
||||||
var autolink = config.autolink === undefined || !!config.autolink;
|
var autolink = config.autolink === undefined || !!config.autolink;
|
||||||
var inline = config.inline === undefined || !!config.inline;
|
var inline = config.inline === undefined || !!config.inline;
|
||||||
var reference = config.reference === undefined || !!config.reference;
|
var reference = config.reference === undefined || !!config.reference;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,8 @@ module.exports = {
|
||||||
"names": [ "MD054", "link-image-style" ],
|
"names": [ "MD054", "link-image-style" ],
|
||||||
"description": "Link and image style",
|
"description": "Link and image style",
|
||||||
"tags": [ "images", "links" ],
|
"tags": [ "images", "links" ],
|
||||||
"function": ({ parsers, config }, onError) => {
|
"function": (params, onError) => {
|
||||||
|
const { parsers, config } = params;
|
||||||
const autolink = (config.autolink === undefined) || !!config.autolink;
|
const autolink = (config.autolink === undefined) || !!config.autolink;
|
||||||
const inline = (config.inline === undefined) || !!config.inline;
|
const inline = (config.inline === undefined) || !!config.inline;
|
||||||
const reference = (config.reference === undefined) || !!config.reference;
|
const reference = (config.reference === undefined) || !!config.reference;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue