新接手的项目,安装过eslintrc,目睹抽风过程
首先遇到的bug是Expected indentation of 4 space but found 1 Tab,ok,fine,我用四个空格代替一个Tab手打好了吧?
又遇到Expected indentation of 1 space but found 4,删掉一个Tab换成一个空格,结果bug变成了Expected indentation of 1 space but found 1?????????我真是满头小问号,截图为证,eslintrc抽风?
没办法,关了吧,找不到.eslintrc.js文件;找到package.json文件,修改部分代码
"eslintConfig": {
"rules": {
"indent": [