We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff9650 commit 84a60c6Copy full SHA for 84a60c6
src/utils/postprocess-files.ts
@@ -27,6 +27,11 @@ export async function postprocessFiles({
27
const [result] = await eslint.lintText(file.data, {
28
filePath: path.resolve(outputDirPath, file.filename)
29
});
30
+ for (const message of result.messages) {
31
+ if (message.fatal) {
32
+ throw new Error(`Fatal ESLint error in ${file.filename}: ${message.message}`);
33
+ }
34
35
return {
36
...file,
37
data: result.output ?? file.data
0 commit comments