From 0d5d51df5e75b9a652f7d2f0f5d131dd6feca95d Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 23 Mar 2024 01:53:12 +0900 Subject: [PATCH] Check existence of `LinterResult.report` property --- src/utils/stylelint/process-linter-result.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/stylelint/process-linter-result.ts b/src/utils/stylelint/process-linter-result.ts index 2dc63e1b..d18ccb01 100644 --- a/src/utils/stylelint/process-linter-result.ts +++ b/src/utils/stylelint/process-linter-result.ts @@ -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 }; }