gpt4 book ai didi

javascript - Eslint "No files matching the pattern "lint“被发现。请检查模式中的输入错误。”错误

转载 作者:行者123 更新时间:2023-12-03 20:26:27 27 4
gpt4 key购买 nike

最近我将我的项目 eslint 包更新为 "eslint": "^6.8.0" .这是我看到错误的时候

Oops! Something went wrong! :(

ESLint: 6.8.0.

No files matching the pattern "lint" were found.
Please check for typing mistakes in the pattern.

我的包 JSON 脚本如下所示:
"lint": "eslint lint --color src -f ./node_modules/eslint-friendly-formatter src/ tests/unit/__mocks__/ --ext .json --ext .js -c .eslintrc.js",

我不确定这个脚本有什么问题,旧版本的 eslint 运行良好。

在论坛中寻找解决方案时,建议添加一个标志 --no-error-on-unmatched-pattern .我不确定为什么需要将此标志添加到我的脚本中。
任何帮助表示赞赏!

最佳答案

我想人们在版本 5 上也遇到过这个问题。。看到这个问题

https://github.com/eslint/eslint/issues/10587
--no-error-on-unmatched-pattern被添加以忽略此类问题。

关于javascript - Eslint "No files matching the pattern "lint“被发现。请检查模式中的输入错误。”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60345326/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com