somewhatabstract / somewhatabstract/checksync
When auto-fixing, added line-ending should match line-ending of file being edited
Open
@somewhatabstract is already working on this.
Since Jun 15, 2021.
bug
enhancement
- Dominant language
- TypeScript
- Stars
- 20
- Forks
- 3
- Avg merge
- 25m
- Merged PRs (30d)
- 21
Description
When auto-fixing, we use the \n character as a line-ending, but on Windows, the line-ending is more likely to be \r\n. We could use os.EOL but this may not match the file that we are fixing, so we should detect the line ending during parsing and then use that.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.