探索ESLint

最近在看github上的一个算法库

copy到了本地后,发现用了ESLint,在vscode中打开,发现了一种小红线提示错误

[eslint] Expected linebreaks to be 'CRLF' but found 'LF'.

[eslint] Expected linebreaks to be 'LF' but found 'CRLF'.

直接在.eslintrc 的 rules中配置  "linebreak-style": "off" 即可

具体的可以看下ESLint配置规则

猜你喜欢

转载自blog.csdn.net/coderMozart/article/details/83652046