Skip to content

Commit 72b2ed9

Browse files
Merge pull request #161 from jayu/patch-2
fix: return normalized paths from fixer on Windows
2 parents fcfe737 + 64db14c commit 72b2ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helpers/create-fixer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const createFixer = (options = {}) => {
1919

2020
const newPath = resolvedPath.replace(aliasPath, '')
2121

22-
const replacement = path.join(aliasMatch, newPath)
22+
const replacement = path.normalize(path.join(aliasMatch, newPath))
2323

2424
return (fixer) => fixer.replaceTextRange([source.range[0] + 1, source.range[1] - 1], replacement)
2525
}

0 commit comments

Comments
 (0)