We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3aae4d commit d8d7395Copy full SHA for d8d7395
packages/plugin-typescript/src/lib/runner/runner.ts
@@ -27,8 +27,7 @@ export function createRunnerFunction(options: RunnerOptions): RunnerFunction {
27
> = diagnostics.reduce(
28
(acc, diag) => {
29
const slug = tSCodeToAuditSlug(diag.code);
30
- const existingIssues: Issue[] =
31
- (acc[slug] && acc[slug].details?.issues) || ([] as Issue[]);
+ const existingIssues: Issue[] = acc[slug]?.details?.issues ?? [];
32
return {
33
...acc,
34
[slug]: {
0 commit comments