Skip to content

Commit

Permalink
Format all files
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Dec 5, 2024
1 parent db6464d commit c2b596f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions packages/cli/src/getExitCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export function getExitCode(analysis: CheckResult, opts?: RenderOptions): number
const ignoreResolutions = opts?.ignoreResolutions ?? [];
return analysis.problems.some((problem) => {
const notRuleIgnored = !ignoreRules.includes(problemFlags[problem.kind]);
const notResolutionIgnored = "resolutionKind" in problem ? !ignoreResolutions.includes(problem.resolutionKind) : true;
const notResolutionIgnored =
"resolutionKind" in problem ? !ignoreResolutions.includes(problem.resolutionKind) : true;
return notRuleIgnored && notResolutionIgnored;
}) ? 1 : 0;
})
? 1
: 0;
}
2 changes: 1 addition & 1 deletion packages/core/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"lib": ["es2019"],
"module": "nodenext",
"outDir": "dist",
"types": ["node", "ts-expose-internals"],
"types": ["node", "ts-expose-internals"]
},
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"module": "nodenext",
"outDir": "dist",
"rootDir": "src",
"types": ["ts-expose-internals"],
"types": ["ts-expose-internals"]
},
"include": ["src"]
}
2 changes: 1 addition & 1 deletion tsconfig.check-dts.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"strict": true
},
"include": ["./packages/core/dist"]
}
}

0 comments on commit c2b596f

Please sign in to comment.