mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01: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) {
|
if (matchLength === effectiveEmphasisLength) {
|
||||||
// Ending an existing run, report any pending error
|
// Ending an existing run, report any pending error
|
||||||
if (pendingError) {
|
if (pendingError) {
|
||||||
|
// @ts-ignore
|
||||||
addErrorContext.apply(void 0, pendingError);
|
addErrorContext.apply(void 0, pendingError);
|
||||||
pendingError = null;
|
pendingError = null;
|
||||||
}
|
}
|
||||||
var error = handleRunEnd(line, lineIndex, effectiveEmphasisLength, match, matchIndex);
|
var error = handleRunEnd(line, lineIndex, effectiveEmphasisLength, match, matchIndex);
|
||||||
if (error) {
|
if (error) {
|
||||||
|
// @ts-ignore
|
||||||
addErrorContext.apply(void 0, error);
|
addErrorContext.apply(void 0, error);
|
||||||
}
|
}
|
||||||
// Reset
|
// Reset
|
||||||
|
|
@ -3927,7 +3929,8 @@ var rules = [
|
||||||
];
|
];
|
||||||
rules.forEach(function (rule) {
|
rules.forEach(function (rule) {
|
||||||
var name = rule.names[0].toLowerCase();
|
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);
|
new URL(homepage + "/blob/v" + version + "/doc/Rules.md#" + name);
|
||||||
});
|
});
|
||||||
module.exports = rules;
|
module.exports = rules;
|
||||||
|
|
|
||||||
|
|
@ -106,12 +106,14 @@ module.exports = {
|
||||||
if (matchLength === effectiveEmphasisLength) {
|
if (matchLength === effectiveEmphasisLength) {
|
||||||
// Ending an existing run, report any pending error
|
// Ending an existing run, report any pending error
|
||||||
if (pendingError) {
|
if (pendingError) {
|
||||||
|
// @ts-ignore
|
||||||
addErrorContext(...pendingError);
|
addErrorContext(...pendingError);
|
||||||
pendingError = null;
|
pendingError = null;
|
||||||
}
|
}
|
||||||
const error = handleRunEnd(
|
const error = handleRunEnd(
|
||||||
line, lineIndex, effectiveEmphasisLength, match, matchIndex);
|
line, lineIndex, effectiveEmphasisLength, match, matchIndex);
|
||||||
if (error) {
|
if (error) {
|
||||||
|
// @ts-ignore
|
||||||
addErrorContext(...error);
|
addErrorContext(...error);
|
||||||
}
|
}
|
||||||
// Reset
|
// Reset
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,8 @@ const rules = [
|
||||||
];
|
];
|
||||||
rules.forEach((rule) => {
|
rules.forEach((rule) => {
|
||||||
const name = rule.names[0].toLowerCase();
|
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}`);
|
new URL(`${homepage}/blob/v${version}/doc/Rules.md#${name}`);
|
||||||
});
|
});
|
||||||
module.exports = rules;
|
module.exports = rules;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue