![](/img/trans.png)
[英]Getting an error 'No files matching the pattern were found' when using prettier
[英]Eslint "No files matching the pattern "lint" were found. Please check for typing mistakes in the pattern." error
最近我將我的項目 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
。 我不確定為什么需要將此標志添加到我的腳本中。 任何幫助表示贊賞!
我想人們在 verison 5 上也遇到過這個問題.. 看到這個問題
https://github.com/eslint/eslint/issues/10587
--no-error-on-unmatched-pattern
以忽略此類問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.