linebreak-style without an argument seems to default to 'unix' #5628
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
documentation
Relates to ESLint's documentation
rule
Relates to ESLint's core rules
I have a Git project which I contribute to on a Windows system. The general consensus seems to be that we should use
core.autocrlf
to deal with any line-ending issues that might arise. Therefore we need to configure ESLint (actually XO, which uses ESLint) to allow either CRLF line-endings or LF line-endings as long as we're being consistent.I have a project which I've configured like this:
Now I get this error for every single line of my project:
131:16 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
The documentation talks about disallowing mixing of CRs and LFs, but it doesn't say explicitly whether my use case is supported. The test cases just leave me more confused, because their implementation seems to suggest that defaulting to LF-only is the intended behavior.
Is this a bug? How is this option meant to be used?
The text was updated successfully, but these errors were encountered: