umijs / umi-lint

🏖 Configless lint tool all in one
39 stars 6 forks source link

运行lint时报错,找不到#--debug-brk #1

Closed areyouse7en closed 5 years ago

areyouse7en commented 5 years ago

yarn lint时报错 image

依赖和配置如下: image image

clock157 commented 5 years ago

这个 bash 注释 windows 下可能存在问题,我重发了一个版本,你试下。

areyouse7en commented 5 years ago

lint通过了,但是提交的时候,哈士奇好像有问题 另外之前项目里已有的tslint.yml里,extends的规则得删掉。

image

clock157 commented 5 years ago

看起来是 bin 程序在 windows 下的兼容性问题,谢谢反馈,我稍后跟进下。

clock157 commented 5 years ago

@areyouse7en 请问你用的是哪一个 npm 客户端?

clock157 commented 5 years ago

已修复,试一下。 @areyouse7en

areyouse7en commented 5 years ago

node 8.11.4, npm 5.6.0, yarn 1.13.0, win10 解决了,谢谢~

clock157 commented 5 years ago

问题原因是 lint-staged 使用了 npm-which,全路径的 bin 在 windows 下存在兼容性问题,并且也不需要使用全路径的 bin。但是可能潜在问题,待观察。