8000
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 a2c53ae commit 1a42f3dCopy full SHA for 1a42f3d
packages/typescript-estree/src/create-program/shared.ts
@@ -32,7 +32,7 @@ const correctPathCasing = useCaseSensitiveFileNames
32
33
function getCanonicalFileName(filePath: string): CanonicalPath {
34
let normalized = path.normalize(filePath);
35
- if (normalized.endsWith('/')) {
+ if (normalized.endsWith(path.sep)) {
36
normalized = normalized.substr(0, normalized.length - 1);
37
}
38
return correctPathCasing(normalized) as CanonicalPath;
0 commit comments