From aa44a38fb7c9529470a2d804d7fd89b4abc55f6c Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Fri, 5 Apr 2024 15:45:46 +0300 Subject: [PATCH] fix: Rename html files to JSX --- src/detectors/typeChecker/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detectors/typeChecker/index.ts b/src/detectors/typeChecker/index.ts index 2fe07567f..16f8e98cc 100644 --- a/src/detectors/typeChecker/index.ts +++ b/src/detectors/typeChecker/index.ts @@ -314,7 +314,7 @@ export class TsFileDetector extends FileBasedDetector { // if (!fileContent) { // throw new Error(`Failed to read file ${filePath}`); // } - internalfilePath = internalfilePath.replace(/\.html$/, ".js"); + internalfilePath = internalfilePath.replace(/\.html$/, ".jsx"); transformationResult = await lintHtml(path.basename(filePath), fs.createReadStream(filePath)); // transformationResult.source = fileContent; transformationResult.source = "";