Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows 系统下无法使用项目的.eslintrc配置 #9

Open
zhang0ZGC opened this issue Nov 21, 2024 · 1 comment
Open

windows 系统下无法使用项目的.eslintrc配置 #9

zhang0ZGC opened this issue Nov 21, 2024 · 1 comment

Comments

@zhang0ZGC
Copy link

因为有自定义eslint rule的原因,在命令行执行 eslint --ext .js,.jsx,.ts,.tsx src 命令后,没有错误。

在命令行执行 taro doctor,会有很多错误信息,被我忽略的rule任然报错了

image

https://github.com/NervJS/taro-doctor/blob/eed156a8a0ef54fad62ea60fdb94d8acdb2ac168/index.js#L132C29-L132C38

我调试发现这一行 glob.sync 调用,把路径中 \ 替换成 / 就能找到文件了

可能是 glob 不识别windows路径分隔符的原因

@zhang0ZGC
Copy link
Author

关联 issue :
NervJS/taro#16025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant