Skip to content

Commit

Permalink
Check existence of LinterResult.report property
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Mar 22, 2024
1 parent 0c68297 commit 0d5d51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/stylelint/process-linter-result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function processLinterResult(
}

const diagnostics = warnings.map((warning) => warningToDiagnostic(warning, ruleMetadata));
const output = linterResult.report || linterResult.output;
const output = ('report' in linterResult && linterResult.report) || linterResult.output;

return output ? { output, diagnostics } : { diagnostics };
}

0 comments on commit 0d5d51d

Please sign in to comment.