Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Line Endings on Windows affect range/loc start and end CRLF/LF #93

Closed
@dannyfritz

Description

@dannyfritz

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 as lf and not auto or crlf. (confirmed fix for running tests).

It is also possible this is a bug specific to Windows environments that needs to be addressed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions