eslint报错"Expected linebreaks to be ‘LF’ but found ‘CRLF’"
vue-cli -y搭建项目后,运行项目eslint报错"Expected linebreaks to be ‘LF’ but found ‘CRLF’"
出现原因是eslint语法检测linebreaks格式统一
在.eslintrc文件 rules 里面 配置 “linebreak-style”: [0 ,“error”, “windows”], 意思是允许windows开发环境
'linebreak-style': [0 ,'error', 'windows'] // 允许windows开发环境