Skip to content

Commit 92d9e97

Browse files
committed
fix: split to ensure biome is ran after
1 parent 0caa08d commit 92d9e97

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Diff for: src/index.ts

+15-5
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,23 @@ const instance = yargs(hideBin(process.argv))
5858
const formatter = await eslint.loadFormatter("stylish");
5959
const files = await getFilesToLint(eslint, patterns, concurrency);
6060

61-
const [eslntResults, biomeResults] = await Promise.all([
62-
lintWithEslint(eslint, files, concurrency, fix, debug),
63-
lintWithBiome(files, concurrency, fix, debug),
64-
]);
61+
const eslintResults = await lintWithEslint(
62+
eslint,
63+
files,
64+
concurrency,
65+
fix,
66+
debug,
67+
);
68+
69+
const biomeResults = await lintWithBiome(
70+
files,
71+
concurrency,
72+
fix,
73+
debug,
74+
);
6575

6676
const resultText = await formatter.format(
67-
mergeResults([...biomeResults, ...eslntResults]),
77+
mergeResults([...biomeResults, ...eslintResults]),
6878
);
6979

7080
console.log(resultText ? resultText : "No issues found");

0 commit comments

Comments
 (0)