看起来像ts lint -e / - exclude不起作用,或者我做错了什么。
我安装了tslint 4.5.1。当我尝试将CLI用作tslint -e path_to_file
时,它表示文件丢失,即使我使用此命令时还有文件的完整路径。你能告诉我该如何解决这个问题吗?
答案 0 :(得分:2)
我有同样的问题。我认为缺少errprs的文件可能是由直接使用'ng'引起的;请尝试使用accept-ranges:bytes
cache-control:max-age=3600
content-encoding:gzip
content-length:839
content-type:text/html; charset=utf-8
date:Wed, 27 Sep 2017 06:54:58 GMT
etag:"f0b36e6c2a348eb46d07907fea856e9a"
last-modified:Wed, 27 Sep 2017 06:53:07 GMT
server:nginx
status:200
strict-transport-security:max-age=31556926
vary:Accept-Encoding
via:1.1 varnish
x-cache:HIT
x-cache-hits:2
x-powered-by:Express
x-served-by:cache-bma7024-BMA
x-timer:S1506495298.256593,VS0,VE0
。
如果你使用cli,你可以像这样修改npm run lint
:
.angular-cli.json