Skip to content

Commit b9318f3

Browse files
authored
fix(website): did not find a source file error if url hash doesn't contain fileType (typescript-eslint#11350)
fix: check file existence using compilerHost instead of system
1 parent 02ee81b commit b9318f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/website/src/components/linter/createParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function createParser(
4646
// if text is empty use empty line to avoid error
4747
const code = text || '\n';
4848

49-
if (system.fileExists(filePath)) {
49+
if (compilerHost.getSourceFile(filePath)) {
5050
compilerHost.updateFile(filePath, code);
5151
} else {
5252
compilerHost.createFile(filePath, code);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy