Skip to content
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

linebreak-style makes it impossible for Windows users to contribute #35

Closed
wants to merge 1 commit into from

Conversation

anaisbetts
Copy link

@anaisbetts anaisbetts commented Dec 24, 2016

Any project that currently uses eslint-config-xo checked out on Windows results in thousands of linter errors since the line endings will be CRLF, making it impossible to contribute to these projects as a Windows user without nerfing the linter entirely.

A better way to enforce this is not via a linter, but via a .gitattributes file (https://help.github.com/articles/dealing-with-line-endings). When you do this, Git will ensure the repo internally is LF, but on Win32 will check out files as CRLF (this is a builtin case of a clean/smudge filter)

Refs vercel/hyper#1230

Any project that currently uses eslint-config-xo checked out on Windows results in thousands of linter errors, making it impossible to contribute to these projects as a Windows user without nerfing the linter entirely.

A better way to enforce this is not via a linter, but via a .gitattributes file (https://help.github.com/articles/dealing-with-line-endings). When you do this, Git will ensure the repo internally is LF, but on Win32 will check out files as CRLF (this is a builtin case of a clean/smudge filter)
anaisbetts added a commit to anaisbetts/javascript that referenced this pull request Dec 28, 2016
Any project that currently uses eslint-config-airbnb checked out on Windows results in thousands of linter errors since the line endings will be CRLF, making it impossible to contribute to these projects as a Windows user without nerfing the linter entirely.

A better way to enforce this is not via a linter, but via a .gitattributes file (https://help.github.com/articles/dealing-with-line-endings). When you do this, Git will ensure the repo internally is LF, but on Win32 will check out files as CRLF (this is a builtin case of a clean/smudge filter)

Refs vercel/hyper#1230, xojs/eslint-config-xo#35
@anaisbetts
Copy link
Author

@sindresorhus Working on a version that might be more amenable to Mac users: eslint/eslint#7823

anaisbetts added a commit to electron/forge that referenced this pull request Jan 2, 2017
See airbnb/javascript#1224,
xojs/eslint-config-xo#35, and
eslint/eslint#7823 for the sad details.

This doesn't completely solve the greater issue, but should at least
help a little bit to ensure new Electron projects can be used on
Windows
MarshallOfSound pushed a commit to electron/forge that referenced this pull request Jan 2, 2017
See airbnb/javascript#1224,
xojs/eslint-config-xo#35, and
eslint/eslint#7823 for the sad details.

This doesn't completely solve the greater issue, but should at least
help a little bit to ensure new Electron projects can be used on
Windows
@anaisbetts anaisbetts closed this Jan 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant