cas项目在gradle编译时报错:
> Task :webapp:cas-server-webapp:npmLint
%projecthome%\webapp\resources\static\js\attrresolution.js
1:11 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
2:1 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
3:32 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
4:44 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
5:28 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
6:45 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
7:45 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
8:43 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
解决:
找到%projecthome%\webapp.eslintrc.json 查找 linebreak
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
把 unix换成 windows
不推荐的方法二:
potentially fixable with the `--fix` option.
使用--fix选项可以自动修复成LF
%%%%
https://www.cnblogs.com/notDog/p/5275149.html
我们把防盗提示做成小卡片,去地铁站里给听歌的乘客分发。绝大多数乘客都很理解和感谢,但是有那么几个就很不屑,认为我们多管闲事。连他们在漫漫上班之路上听歌的权利都要剥夺。其中有一个戴着耳机听歌的姑娘最过分,白了我一眼,说:小广告我不要。我心里一万只草泥马飞奔而过啊,当时我穿的制服啊,你见过警察发小广告的吗?结果晚上就听同事说,有个姑娘手机被盗,来我们单位报警。我侧目一看,正是早上那位。
作者:马拓
链接:https://www.zhihu.com/question/49295364/answer/147163452
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
网友评论