cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove "ESLint:(linebreak-style)Expected linebreaks to be 'LF' but found 'CRLF"

former_member441692
Participant
0 Kudos

Hi Experts!

I am facing this issue on WebIDE that when I open existing projects, the XML and JS files show the following error.

ESLint:(linebreak-style)Expected linebreaks to be 'LF' but found 'CRLF

However, when I create any project, I don't this error in the pages.

Could you please let me know what settings are required to avoid this error and resolve the same in existing projects on WebIde.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member441692
Participant

Hi All,

I found this solution on the following links

https://github.com/diegohaz/arc/issues/171

https://help.hana.ondemand.com/webide/frameset.htm?d092c2fe23744506927a65cda679a0bd.html

So I went to the code editor setting for this issue and found that the default setting is Auto on Web IDE. I changed it to Unix and the error disappeared.

Thanks !

former_member603382
Participant

This worked for me. I also had to import the project I was working on again because it does not refresh the projects to replace all CRLF by LF automatically.

0 Kudos

This worked for me as well. Thanks!

0 Kudos

It worked for me too. Thanks.

rakesh_94
Participant
0 Kudos

Thanks its worked for me .

0 Kudos

It worked !

Answers (1)

Answers (1)

0 Kudos

You can adjust your project settings by following way if you face similar issue :

Right Click on your Project : Project ->Project Settings ->Git Repository -> add a new entry in GIT Repository pane .in the entry add core.autocrlf = true.

former_member441692
Participant
0 Kudos

Thanks Saurabh! I will try this too although my issue was resolved. Thanks for answering!

former_member603382
Participant
0 Kudos

This did not work for me.