mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Move single use, not explicitly tested helpers into the file that uses them.
This commit is contained in:
parent
df70ea5989
commit
c5d4a3297f
5 changed files with 72 additions and 84 deletions
|
|
@ -2,10 +2,11 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { addError, ellipsify, linkReferenceDefinitionRe } =
|
||||
require("../helpers");
|
||||
const { addError, ellipsify } = require("../helpers");
|
||||
const { getReferenceLinkImageData } = require("./cache");
|
||||
|
||||
const linkReferenceDefinitionRe = /^ {0,3}\[([^\]]*[^\\])\]:/;
|
||||
|
||||
// eslint-disable-next-line jsdoc/valid-types
|
||||
/** @type import("./markdownlint").Rule */
|
||||
module.exports = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue