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 Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style #105
Comments
You need to add on package.json, under rules this line:
So it will look like: "rules": { And remove the other stuff you've added. |
thx that fixed my issue |
@martin2786 there is nothing like "rules" in package.json |
@shahidkarimi it is on eslintconfig section in package.json |
------------------for windows globe in package.son will read all import files---add-- "rules": { |
If you are using vscode i would recommend you to click the option at the bottom-right of the window and set it to LF from CRLF..this fixed my errors |
example please! |
Thanks |
This only works for the currently selected file, correct? I'm trying to get eslint to run properly in windows on a repo that is all LF. Not having any luck with these suggestions. |
I had similar problem with whole project and not just single files and fixed it with the following command: |
I'm currently using windows, to fix this issue I tried adding an .eslintrc with
/*eslint linebreak-style: ["error", "windows"]*/
, but then I got this error :The text was updated successfully, but these errors were encountered: