What does a red text-background mean in GitHub comparison view?

后端 未结 2 1155
我寻月下人不归
我寻月下人不归 2020-12-29 00:51

I created a pull request and was browsing through, the differences are shown with light red/green line-brackgrounds, but some text is bolded with a red text background...

2条回答
  •  不思量自难忘°
    2020-12-29 01:34

    This is issue makes code review process hard especially for the React(JSX) projects. Almost all the files with JSX showed the red lines.

    I fixed it by copy pasting

    var errorLine = document.getElementsByClassName("pl-ii");
    var i;
    for (i = 0; i < errorLine.length; i++) {
        errorLine[i].style.backgroundColor = "transparent";
        errorLine[i].style.color = "#24292e";
    }
    

    on my console

提交回复
热议问题