This repository was archived by the owner on Jan 19, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 75
Line Endings on Windows affect range/loc start and end CRLF/LF #93
Labels
Comments
I have no access to a windows machine to verify this, unfortunately. The tests setup was initially configured based on how things are done in other ESLint projects, so I am surprised that this is an issue / has not already been handled. @nzakas is this something you have come across before in other projects? |
This is what my
|
I'm on windows, but I've had my Git setup to always checkout and commit using lf, which is probably why I haven't seen an issue. I'm 👍 on adding a |
Sounds good to me! Are you happy to take that @dannyfritz? |
That works for me. I'll try to get it in tomorrow morning. |
dannyfritz
added a commit
to dannyfritz/typescript-eslint-parser
that referenced
this issue
Sep 21, 2016
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What OS are you using?
Windows 10
What version of TypeScript are you using?
1.8.0
What version of
typescript-eslint-parser
are you using?0.3.0
What code were you trying to parse?
npm test
What did you expect to happen?
Tests to pass.
What happened?
All tests with more than 1 line of code failed because
\r\n
is longer than\n
.Possible Fix
Add a
.gitattributes
file that specifies that all OS'es should pull down files aslf
and notauto
orcrlf
. (confirmed fix for running tests).It is also possible this is a bug specific to Windows environments that needs to be addressed.
The text was updated successfully, but these errors were encountered: