ng lint --fix=true 不修复 linting 错误
ng lint --fix=true doesn't fix linting errors
在使用“ng new”创建新项目并修改 tslint.json 以使用制表符而不是空格后,运行“ng lint --fix=true”没有任何效果在 .ts 文件上:
ng lint --fix=true
只列出错误,但不修复它们。根据documentation,应该可以。
ERROR: 4:1 indent tab indentation expected
ERROR: 5:1 indent tab indentation expected
ERROR: 6:1 indent tab indentation expected
ERROR: 9:1 indent tab indentation expected
环境:Angular CLI:10.1.7
命令有误吗?
在使用“ng new”创建新项目并修改 tslint.json 以使用制表符而不是空格后,运行“ng lint --fix=true”没有任何效果在 .ts 文件上:
ng lint --fix=true
只列出错误,但不修复它们。根据documentation,应该可以。
ERROR: 4:1 indent tab indentation expected
ERROR: 5:1 indent tab indentation expected
ERROR: 6:1 indent tab indentation expected
ERROR: 9:1 indent tab indentation expected
环境:Angular CLI:10.1.7
命令有误吗?