Vic*_*tor 4 javascript eslint package.json
最近我将我的项目 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.
Run Code Online (Sandbox Code Playgroud)
我的包 JSON 脚本如下所示:
"lint": "eslint lint --color src -f ./node_modules/eslint-friendly-formatter src/ tests/unit/__mocks__/ --ext .json --ext .js -c .eslintrc.js",
Run Code Online (Sandbox Code Playgroud)
我不确定这个脚本有什么问题,它在 eslint 的旧版本上运行良好。
在论坛中寻找解决方案时,建议添加一个 flag
--no-error-on-unmatched-pattern。我不确定为什么需要将此标志添加到我的脚本中。任何帮助表示赞赏!
我想人们在 verison 5 上也遇到过这个问题.. 看到这个问题
https://github.com/eslint/eslint/issues/10587
--no-error-on-unmatched-pattern 被添加以忽略此类问题。
| 归档时间: |
|
| 查看次数: |
8150 次 |
| 最近记录: |