Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Aug 7, 2024
1 parent e1543a8 commit f505cea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/mergebot/src/pr-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,12 @@ configSuspicious["tsconfig.json"] = makeChecker(
ignore: (data) => {
if (!data || typeof data !== "object") return;

if ("compilerOptions" in data && data.compilerOptions && typeof data.compilerOptions === "object" && !Array.isArray(data.compilerOptions)) {
if (
"compilerOptions" in data &&
data.compilerOptions &&
typeof data.compilerOptions === "object" &&
!Array.isArray(data.compilerOptions)
) {
if (Array.isArray(data.compilerOptions.lib)) {
data.compilerOptions.lib = data.compilerOptions.lib.filter(
(value: unknown) => !(typeof value === "string" && value.toLowerCase() === "dom"),
Expand All @@ -461,7 +466,7 @@ type JSONLike = boolean | number | string | null | { [key: string]: JSONLike } |
function makeChecker(
expectedForm: any,
expectedFormUrl: string,
options?: { parse?: (text: string) => JSONLike, ignore?: (data: JSONLike) => void },
options?: { parse?: (text: string) => JSONLike; ignore?: (data: JSONLike) => void },
) {
const diffFromExpected = (text: string) => {
let data: any;
Expand Down

0 comments on commit f505cea

Please sign in to comment.