8000 fix(typescript-estree): correct persisted parse for windows (#1406) · sstephens/typescript-eslint@1a42f3d · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a42f3d

Browse files
armano2bradzacher
authored andcommitted
fix(typescript-estree): correct persisted parse for windows (typescript-eslint#1406)
1 parent a2c53ae commit 1a42f3d

File tree

1 file changed

+1
-1
lines changed
  • packages/typescript-estree/src/create-program

1 file changed

+1
-1
lines changed

packages/typescript-estree/src/create-program/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const correctPathCasing = useCaseSensitiveFileNames
3232

3333
function getCanonicalFileName(filePath: string): CanonicalPath {
3434
let normalized = path.normalize(filePath);
35-
if (normalized.endsWith('/')) {
35+
if (normalized.endsWith(path.sep)) {
3636
normalized = normalized.substr(0, normalized.length - 1);
3737
}
3838
return correctPathCasing(normalized) as CanonicalPath;

0 commit comments

Comments
 (0)
0