-
Notifications
You must be signed in to change notification settings - Fork 885
Linting with absolute path to tmp file is broken in macOS Catalina #4880
Comments
Wow, this Catalina update is really getting a bad rep... 😅
Could you please post more info on that @dhleong? I'd be happy to look deeper into / review a PR for Thanks for filing! |
Yeah... I was too excited about iTunes not popping up when I plugged in iDevices and decided not to wait for the .1; big mistake. Anyway I'm not an expert, but here's an article about the change. Basically Thanks for taking a look! |
FYI @adidahiya - there might be some historical context? I can test out a PR that comes in on Mac Mojave and Windows 10. |
@dhleong I've encountered the same issue and have created a PR to fix this as you've suggested. Hopefully it's with you, otherwise fill free to create your own and I would close my one. Thanks! |
Hey thanks @i1skn ! I've been sidetracked with work and that looks about like what I would have submitted so feel free to run with it, I don't mind :) |
The fix in #4887 will be available in TSLint v6. Thanks! |
🤖 Beep boop! 👉 TSLint is deprecated 👈 and you should switch to typescript-eslint! 🤖 🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋 |
Bug Report
Reproduction using TSLint Playground
N/A
TypeScript code being linted
with
tslint.json
configuration:via CLI invocation:
Actual behavior
Expected behavior
Fix the import ordering
Notes
Not sure if this is the appropriate fix, but using
path.resolve(filePath)
instead of the rawfilePath
in the call towriteFileSync
ofLinter.applyFixes
seems to fix it. May be related to Catalina's changes to the root directory. It does resolve that weird relative path (note that the input to the CLI was not relative).Happy to provide a PR with that one-line change if you like.
The text was updated successfully, but these errors were encountered: