mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Try adding @ts-ignore/etc. to resolve Windows/Node 14-only break when ci script invokes build-demo.
This commit is contained in:
parent
d5b1122ef1
commit
01d216ff6a
3 changed files with 8 additions and 2 deletions
|
@ -3304,11 +3304,13 @@ module.exports = {
|
|||
if (matchLength === effectiveEmphasisLength) {
|
||||
// Ending an existing run, report any pending error
|
||||
if (pendingError) {
|
||||
// @ts-ignore
|
||||
addErrorContext.apply(void 0, pendingError);
|
||||
pendingError = null;
|
||||
}
|
||||
var error = handleRunEnd(line, lineIndex, effectiveEmphasisLength, match, matchIndex);
|
||||
if (error) {
|
||||
// @ts-ignore
|
||||
addErrorContext.apply(void 0, error);
|
||||
}
|
||||
// Reset
|
||||
|
@ -3927,7 +3929,8 @@ var rules = [
|
|||
];
|
||||
rules.forEach(function (rule) {
|
||||
var name = rule.names[0].toLowerCase();
|
||||
rule.information =
|
||||
// eslint-disable-next-line dot-notation
|
||||
rule["information"] =
|
||||
new URL(homepage + "/blob/v" + version + "/doc/Rules.md#" + name);
|
||||
});
|
||||
module.exports = rules;
|
||||
|
|
|
@ -106,12 +106,14 @@ module.exports = {
|
|||
if (matchLength === effectiveEmphasisLength) {
|
||||
// Ending an existing run, report any pending error
|
||||
if (pendingError) {
|
||||
// @ts-ignore
|
||||
addErrorContext(...pendingError);
|
||||
pendingError = null;
|
||||
}
|
||||
const error = handleRunEnd(
|
||||
line, lineIndex, effectiveEmphasisLength, match, matchIndex);
|
||||
if (error) {
|
||||
// @ts-ignore
|
||||
addErrorContext(...error);
|
||||
}
|
||||
// Reset
|
||||
|
|
|
@ -54,7 +54,8 @@ const rules = [
|
|||
];
|
||||
rules.forEach((rule) => {
|
||||
const name = rule.names[0].toLowerCase();
|
||||
rule.information =
|
||||
// eslint-disable-next-line dot-notation
|
||||
rule["information"] =
|
||||
new URL(`${homepage}/blob/v${version}/doc/Rules.md#${name}`);
|
||||
});
|
||||
module.exports = rules;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue