mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Add @ts-check to JS files without it, address resulting issues.
This commit is contained in:
parent
eacfa6142b
commit
37307d0764
7 changed files with 237 additions and 117 deletions
|
@ -1,3 +1,5 @@
|
|||
// @ts-check
|
||||
|
||||
"use strict";
|
||||
|
||||
const fs = require("fs");
|
||||
|
@ -359,6 +361,7 @@ rules.forEach(function forRule(rule) {
|
|||
break;
|
||||
}
|
||||
if (custom) {
|
||||
// @ts-ignore
|
||||
scheme.type = [ "boolean", "object" ];
|
||||
scheme.additionalProperties = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue