Add @ts-check to JS files without it, address resulting issues.

This commit is contained in:
David Anson 2019-10-30 20:37:06 -07:00
parent eacfa6142b
commit 37307d0764
7 changed files with 237 additions and 117 deletions

View file

@ -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;
}