Skip to content

Commit a98426c

Browse files
zalishchukclaude
andcommitted
refactor: simplify LinterResult type
Remove output/report compatibility workaround since type errors with older stylelint versions are pre-existing and accepted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9a3eadf commit a98426c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/linter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,11 @@ function linter(key, options, compilation) {
236236

237237
const formatter = await loadFormatter(getStylelint, options.formatter);
238238

239-
// Include both output (v13-v16) and report (v17+) for compatibility
240-
/** @type {LinterResult & { output?: string }} */
239+
/** @type {LinterResult} */
241240
const returnValue = {
242241
cwd: /** @type {string} */ (options.cwd),
243242
errored: false,
244243
results: [],
245-
output: "",
246244
report: "",
247245
reportedDisables: [],
248246
ruleMetadata: getRuleMetadata(results),

0 commit comments

Comments
 (0)