1.git commit的时候报错
Commit failed with error
0 files committed, 1 file failed to commit: test
warning: LF will be replaced by CRLF in src/xxxx.
The file will have its original line endings in your working directory.
对于新项目可以:
File->Settings…->Editor->Code Style
已有文件目前发现只能一个一个改:
在右下角有 可以切换
或者就是关闭“换行符自动转换”:git config --global core.autocrlf false
同时,修改eslint的rules:'linebreak-style': 'off'