New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when there's a \r in .eslintrc #1172
Comments
This looks like we just need to split on |
will have fix with PR ready in few. |
How did a failing test get on master? |
I think it only happens on windows machine. Travis build never failed. |
The test isn't failing on master. I'm also on windows 7 and have no problem. @gyandeeps you should double check that git isn't automatically adding windows-style line endings on your machine. |
No, I think this is a legitimate issue where we will be handling Windows-escaped files incorrectly. That should be fixed. |
Any idea how I can make a file to have windows style escape and then create test against it. I will have to save that file inside test. How can i force a file to have |
Fix: Error when there's a \r in .eslintrc (#1172)
Commit message format error left this issue open, but this has been fixed. |
One of the test case failed on my machine. I just forked the repo and it failed.
The test case is:
The content of
eslintignore2
is:Am I doing something wrong or is it a problem?
UPDATE
I think the
eslintignore2
file has 2 rows. second row is empty. Thats why it fails.I used
notepad++
to open the file.Can any one confirm this on
windows 7
machine?Also after
split("\n")
operation is done on the file content it gives an array like thisAlso after doing
filter(nonEmpty)
on it, it refines the array to be like thisThe above
split
andfilter
is done here: https://github.com/eslint/eslint/blob/master/lib/ignored-paths.js#L44I think the mystery is
\r
thing.http://stackoverflow.com/questions/1279779/what-is-the-difference-between-r-and-n
Discussions around this area within eslint:
The text was updated successfully, but these errors were encountered: