问题描述
将我们的代码库更新为 Eslint
除了现在我所有的 TS 文件在 VSCode 中都有这个错误:
Parsing error: Cannot read {file '/users/steve/github/myproject/tsconfig.json'.
在主要进口线上
项目结构是这样的(简化):
- package.json
- .eslintrc.json
- client
- tsconfig.json
- package.json
- .eslintrc.json
- angular.json
- projects
--someotherproject
- src
- app
- [all of the main app's code]
当我运行 ng lint myproject
时,我收到了我希望看到的 eslint/prettier 警告。我仍然收到 tslint 已弃用并更新到 eslint 的提示。
我没有收到 tslint.config 错误,因为文件在那里。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)