You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not make any changes, just commit the code to a git repo on a *nix machine.
Pull the repo on a Windows machine.
Run yarn serve or yarn build.
What is expected?
The project is built, Eslint is not complaining.
What is actually happening?
Eslint throws tons of erros like:
error: Expected linebreaks to be 'LF' but found 'CRLF`
It happens because on Windows, by default, GIT converts LF to CRLF when pulling and converts it back to LF when pushing.
I know that this is an Airbnb preset issue, not a vue-cli issue, but before it's fixed on the Aribnb side a temporary fix should be applied in the vue-cli eslint config - the linebreak-style should be disabled.
The text was updated successfully, but these errors were encountered:
@yyx990803
I have already applied a fix in my Eslint config, but this issue affects all Windows users that share their code via Git with non-Windows users. It's not an edge case. IMO it would be good to apply a workaround in vue-cli and remove it once the issue is fixed on the Airbnb side.
Version
3.0.0-rc.3
Reproduction link
airbnb/javascript#1224
Steps to reproduce
yarn serve
oryarn build
.What is expected?
The project is built, Eslint is not complaining.
What is actually happening?
Eslint throws tons of erros like:
It happens because on Windows, by default, GIT converts LF to CRLF when pulling and converts it back to LF when pushing.
I know that this is an Airbnb preset issue, not a vue-cli issue, but before it's fixed on the Aribnb side a temporary fix should be applied in the vue-cli eslint config - the
linebreak-style
should be disabled.The text was updated successfully, but these errors were encountered: