Skip to content

Commit 330e480

Browse files
committed
fix: add regex for eslint report
1 parent 3db86dc commit 330e480

File tree

1 file changed

+2
-4
lines changed
  • packages/plugin-eslint/src/lib/runner

1 file changed

+2
-4
lines changed

packages/plugin-eslint/src/lib/runner/lint.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ import { setupESLint } from '../setup.js';
1414
import type { LinterOutput, RuleOptionsPerFile } from './types.js';
1515

1616
/**
17-
* Regex pattern to match ESLint report filename format with OS-agnostic path separators.
17+
* Regex pattern to match ESLint report filename format.
1818
* Matches: eslint-report.json or eslint-report-{number}.json
19-
* Handles both forward slashes (/) and backslashes (\) for cross-platform compatibility
2019
*/
21-
export const ESLINT_REPORT_FILENAME_PATTERN =
22-
/--output-file="\.code-pushup[/\\]eslint[/\\]eslint-report(?:-\d+)?\.json"/; // eslint-disable-line unicorn/better-regex
20+
export const ESLINT_REPORT_FILENAME_PATTERN = /eslint-report(?:-\d+)?\.json"/;
2321

2422
export async function lint({
2523
eslintrc,

0 commit comments

Comments
 (0)